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