Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 2f3be94e..1fda3fa9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -138,6 +138,8 @@
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
installShellCompletion contrib/completion/hx.{bash,fish,zsh}
'';
+ # set git revision for nix flake builds, see 'git_hash' in helix-loader/build.rs
+ HELIX_NIX_BUILD_REV = self.rev or self.dirtyRev or null;
});
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
default = self.packages.${system}.helix;