1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 08:57:46 +00:00

nix: use version from Cargo.toml in package derivation (#38)

This commit is contained in:
raf 2025-06-08 13:08:36 +03:00 committed by GitHub
commit 154724c7b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "watt";
version = "0.1.0";
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
src = fs.toSource {
root = ../.;