1
0
mirror of https://github.com/ryanccn/attic-action.git synced 2026-04-23 01:31:43 +00:00
Files
attic-action/flake.nix
Ryan Cao e8976a94e8 fix: update Nix CLI syntax
Closes #45, closes #46
2026-04-06 00:29:29 +08:00

38 lines
854 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{ nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
actionlint
nodejs_24
(nodePackages_latest.pnpm.override { nodejs = nodejs_24; })
];
};
});
packages = forAllSystems (pkgs: {
impure-test = pkgs.runCommand "impure-test" { } ''
echo ${toString builtins.currentTime} > $out
'';
});
formatter = forAllSystems (p: p.nixfmt);
};
}