From c925d09792ad6285c8aca2c801e541bbe8bfc3b5 Mon Sep 17 00:00:00 2001 From: waalge Date: Wed, 27 Sep 2023 20:54:04 +0000 Subject: [PATCH] try patch --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2c2fc76d..f5bff79c 100644 --- a/flake.nix +++ b/flake.nix @@ -31,8 +31,11 @@ src = pkgs.lib.cleanSourceWith { src = self; }; cargoLock.lockFile = ./Cargo.lock; - GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev; + + postPatch = '' + substituteInPlace crates/aiken/src/cmd/mod.rs --replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\"" + ''; postInstall = '' mkdir -p $out/share/zsh/site-functions