diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b24d25d --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "Various Nix utilities for CI"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + deps = with pkgs; [ statix deadnix nixpkgs-fmt alejandra ]; + in + with pkgs; rec { + packages.ci = symlinkJoin { + name = "nixci"; + paths = deps ++ [ bashInteractive coreutils ]; + meta.priority = 5; + }; + defaultPackage = packages.ci; + } + ); +} |