From 6fa4458f59160cdf9e82ad2138300b1041f510ad Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Wed, 5 Mar 2025 15:27:26 -0500 Subject: treewide: use flake Signed-off-by: Seth Flynn --- release.nix | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 release.nix (limited to 'release.nix') diff --git a/release.nix b/release.nix deleted file mode 100644 index 7b0524b..0000000 --- a/release.nix +++ /dev/null @@ -1,48 +0,0 @@ -# nix-build release.nix -A -# i.e., nix-build release.nix -A x86_64-linux -{ - lib ? import , -}: - -let - src = lib.fileset.toSource { - root = ./.; - fileset = lib.fileset.gitTracked ./.; - }; - - systems = [ - "x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin" - ]; -in - -lib.genAttrs systems ( - system: - - let - pkgs = import { - inherit system; - config = { }; - overlays = [ ]; - }; - - mkCheck = - name: deps: script: - pkgs.runCommand name { nativeBuildInputs = deps; } '' - ${script} - touch $out - ''; - - packages = lib.mapAttrs (lib.const lib.recurseIntoAttrs) (import ./default.nix { inherit pkgs; }); - - checks = { - deadnix = mkCheck "check-deadnix" [ pkgs.deadnix ] "deadnix --fail ${src}"; - nixfmt = mkCheck "check-nixfmt" [ pkgs.nixfmt-rfc-style ] "nixfmt --check ${src}"; - statix = mkCheck "check-statix" [ pkgs.statix ] "statix check ${src}"; - }; - in - - checks // packages // { shell = import ./shell.nix { inherit pkgs; }; } -) -- cgit v1.2.3