From 51cc7d68eb55a0bd29fbe8e9e25c2b3d5850943b Mon Sep 17 00:00:00 2001 From: waalge Date: Fri, 19 Jan 2024 14:13:32 +0000 Subject: [PATCH 1/2] fix: nix build requires githash --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index dbe40ad0f..318163568 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,10 @@ src = pkgs.lib.cleanSourceWith { src = self; }; - cargoLock.lockFile = ./Cargo.lock; + cargoLock = { + lockFile = ./Cargo.lock; + outputHashes = { "pallas-0.21.0" = "sha256-QuJwwyNaPpXBi7GzLh/V2cIRYz29Xsd3HUeG4yPt8VQ="; }; + }; GIT_COMMIT_HASH_SHORT = self.shortRev or "unknown"; postPatch = '' From 0f10b343f1e0b9cca090fc93ad6b62d452de56da Mon Sep 17 00:00:00 2001 From: waalge Date: Fri, 19 Jan 2024 14:15:22 +0000 Subject: [PATCH 2/2] fix: nix build git version patch (untested) --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 318163568..67c03a999 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ GIT_COMMIT_HASH_SHORT = self.shortRev or "unknown"; postPatch = '' - substituteInPlace crates/aiken/src/cmd/mod.rs \ + substituteInPlace crates/aiken-project/src/config.rs \ --replace "built_info::GIT_COMMIT_HASH_SHORT" \ "Some(\"$GIT_COMMIT_HASH_SHORT\")" '';