Several nix fixes (#1737)

* Fixed nix c3c development shell

* Fix unknown git hash on nix build
This commit is contained in:
vssukharev
2024-12-29 22:12:26 +02:00
committed by GitHub
parent 1340a47bc2
commit 7b734df09e
3 changed files with 40 additions and 38 deletions

View File

@@ -8,12 +8,17 @@
outputs = { self, ... } @ inputs: inputs.flake-utils.lib.eachDefaultSystem
(system:
let pkgs = import inputs.nixpkgs { inherit system; }; in
{
let pkgs = import inputs.nixpkgs { inherit system; };
call = set: pkgs.callPackage ./nix/default.nix (
set // {
rev = self.rev or "unknown";
}
);
in {
packages = {
default = self.packages.${system}.c3c;
c3c = pkgs.callPackage ./nix/default.nix {};
c3c = call {};
c3c-checks = pkgs.callPackage ./nix/default.nix {
checks = true;