Slight updates in nix

This commit is contained in:
vssukharev
2024-12-18 19:21:44 +02:00
committed by Christoffer Lerno
parent b4de62cfc2
commit 42c9c9894b
2 changed files with 8 additions and 4 deletions

View File

@@ -14,20 +14,24 @@
default = self.packages.${system}.c3c;
c3c = pkgs.callPackage ./nix/default.nix {};
c3c-checks = pkgs.callPackage ./nix/default.nix {
checks = true;
};
c3c-debug = pkgs.callPackage ./nix/default.nix {
debug = true;
};
c3c-nochecks = pkgs.callPackage ./nix/default.nix {
c3c-debug-checks = pkgs.callPackage ./nix/default.nix {
debug = true;
checks = false;
checks = true;
};
};
devShells = {
default = pkgs.callPackage ./nix/shell.nix {
c3c = self.packages.${system}.c3c-nochecks;
c3c = self.packages.${system}.c3c-debug;
};
};
}

View File

@@ -8,7 +8,7 @@
libffi,
xar,
debug ? false,
checks ? true,
checks ? false,
}: let
inherit (builtins) baseNameOf toString readFile elemAt;
inherit (lib.sources) cleanSourceWith cleanSource;