mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-11 00:00:12 +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);
|
rustfmtToml = builtins.fromTOML (builtins.readFile ./rustfmt.toml);
|
||||||
|
|
||||||
rev = self.shortRev or self.dirtyShortRev or (substring 0 8 self.lastModifiedDate);
|
rev = self.shortRev or self.dirtyShortRev or (substring 0 8 self.lastModifiedDate);
|
||||||
makefileVersion = removePrefix "VERSION=" (
|
version = "${cargoToml.package.version}+${rev}";
|
||||||
findFirst (line: hasPrefix "VERSION=" line) "VERSION=0.0.0" (split "\n" (readFile ./Makefile))
|
|
||||||
);
|
|
||||||
version = "${makefileVersion}+${rev}";
|
|
||||||
|
|
||||||
mkCommon =
|
mkCommon =
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user