mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +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
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (lib) sourceByRegex readFile;
|
||||
src = sourceByRegex ../. [ "Cargo.*" "(src|data)(/.*)?" ];
|
||||
rustPlatform = makeRustPlatform {
|
||||
cargo = rust-bin.stable.latest.default;
|
||||
rustc = rust-bin.stable.latest.default;
|
||||
};
|
||||
version = (fromTOML (readFile ../Cargo.toml)).package.version;
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "logsmash";
|
||||
version = "0.1.0";
|
||||
|
||||
inherit src;
|
||||
inherit version src;
|
||||
|
||||
preBuild = ''
|
||||
rm -r data/src/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue