nix: use cargo manifest
This commit is contained in:
parent
65565a4205
commit
cbd67821fc
1 changed files with 6 additions and 2 deletions
|
@ -8,9 +8,13 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
rawManifest = builtins.readFile ./Cargo.toml;
|
||||||
|
manifest = builtins.fromTOML rawManifest;
|
||||||
|
in
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
pname = "nyazoom";
|
pname = manifest.package.name;
|
||||||
version = "0.1.0";
|
version = manifest.package.version;
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue