diff options
author | Christian Segundo | 2024-02-25 04:12:25 +0100 |
---|---|---|
committer | Christian Segundo | 2024-02-25 05:45:22 +0100 |
commit | e5fcdd846da087e040f8934c0d3fb448089882b2 (patch) | |
tree | e5e853f07630a3eb5dc1243d3b189b1fa14a5a85 /flake.nix | |
parent | cddb0f3aad6068e40def1ea887fb37923bb19538 (diff) | |
download | nixci-master.tar.gz |
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; + } + ); +} |