1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-29 09: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 in
rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.buildRustPackage (finalAttrs: {
pname = "watt"; pname = "watt";
version = "0.1.0"; version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
src = fs.toSource { src = fs.toSource {
root = ../.; root = ../.;