mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 10:04:12 +02:00
nix: auto version
This commit is contained in:
parent
42c4ebe4c1
commit
d33bbc8ed2
1 changed files with 3 additions and 4 deletions
|
|
@ -6,18 +6,17 @@
|
||||||
,
|
,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.sources) sourceByRegex;
|
inherit (lib) sourceByRegex readFile;
|
||||||
src = sourceByRegex ../. [ "Cargo.*" "(src|data)(/.*)?" ];
|
src = sourceByRegex ../. [ "Cargo.*" "(src|data)(/.*)?" ];
|
||||||
rustPlatform = makeRustPlatform {
|
rustPlatform = makeRustPlatform {
|
||||||
cargo = rust-bin.stable.latest.default;
|
cargo = rust-bin.stable.latest.default;
|
||||||
rustc = rust-bin.stable.latest.default;
|
rustc = rust-bin.stable.latest.default;
|
||||||
};
|
};
|
||||||
|
version = (fromTOML (readFile ../Cargo.toml)).package.version;
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "logsmash";
|
pname = "logsmash";
|
||||||
version = "0.1.0";
|
inherit version src;
|
||||||
|
|
||||||
inherit src;
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
rm -r data/src/data
|
rm -r data/src/data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue