Version from compile time nix

This commit is contained in:
MasseR committed 2026-06-02 10:18:55 +03:00
1 parent e87aae3144
commit 51a1e49fb7
6 files changed
+29 -32

No files matched your search

+5 -1
View File
@@ -12,7 +12,11 @@
let pkgs = nixpkgs.legacyPackages.${system};
hp = nixpkgs.legacyPackages.${system}.haskellPackages.override (old: {
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (f: p: {
wallabag-tagger = f.callPackage ./. {};
wallabag-tagger = pkgs.haskell.lib.overrideCabal (f.callPackage ./. {}) (_: {
preBuild = ''
export COMMIT="${self.rev or "unknown"}"
'';
});
});
});
in rec {