nix: use cargo manifest

This commit is contained in:
Zynh Ludwig 2025-01-11 14:05:27 -08:00
parent 65565a4205
commit cbd67821fc

View file

@ -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 = ./.;