mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
update nix build to pull version from Cargo.toml
This commit is contained in:
parent
612cb935b4
commit
b3c167169c
@ -77,10 +77,7 @@
|
||||
rustfmtToml = builtins.fromTOML (builtins.readFile ./rustfmt.toml);
|
||||
|
||||
rev = self.shortRev or self.dirtyShortRev or (substring 0 8 self.lastModifiedDate);
|
||||
makefileVersion = removePrefix "VERSION=" (
|
||||
findFirst (line: hasPrefix "VERSION=" line) "VERSION=0.0.0" (split "\n" (readFile ./Makefile))
|
||||
);
|
||||
version = "${makefileVersion}+${rev}";
|
||||
version = "${cargoToml.package.version}+${rev}";
|
||||
|
||||
mkCommon =
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user