From cbd67821fcdfc6cb7137a726cd585e5040ebe103 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sat, 11 Jan 2025 14:05:27 -0800 Subject: [PATCH] nix: use cargo manifest --- package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.nix b/package.nix index 0a30744..110839f 100644 --- a/package.nix +++ b/package.nix @@ -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 = ./.;