mirror of
https://github.com/ryanccn/attic-action.git
synced 2024-11-24 08:24:17 +00:00
5dc7b671af
* feat: add flake devShell * chore: add prettier * fix: respect cache input during configure * feat: auto push paths * feat: add test workflow * chore: update index.js * refactors * pnpm lock * more refactors * remove copying --------- Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
36 lines
771 B
Nix
36 lines
771 B
Nix
{
|
|
description = "";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs
|
|
, ...
|
|
}:
|
|
let
|
|
mkSystems = sys: builtins.map (arch: "${arch}-${sys}") [ "x86_64" "aarch64" ];
|
|
systems =
|
|
mkSystems "linux"
|
|
++ mkSystems "darwin";
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
|
|
|
forEachSystem = fn:
|
|
forAllSystems (s: fn nixpkgsFor.${s});
|
|
in
|
|
{
|
|
devShells = forEachSystem (pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
actionlint
|
|
nodePackages.pnpm
|
|
];
|
|
};
|
|
});
|
|
|
|
formatter = forEachSystem (p: p.nixpkgs-fmt);
|
|
};
|
|
}
|