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
|
||||
}:
|
||||
|
||||
let
|
||||
rawManifest = builtins.readFile ./Cargo.toml;
|
||||
manifest = builtins.fromTOML rawManifest;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "nyazoom";
|
||||
version = "0.1.0";
|
||||
pname = manifest.package.name;
|
||||
version = manifest.package.version;
|
||||
|
||||
src = ./.;
|
||||
|
||||
|
|
Loading…
Reference in a new issue