nix: infer package version from Cargo.toml

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964297f08843615d04e10d405cdc4ef134f
This commit is contained in:
raf 2025-08-13 08:03:47 +03:00
commit 57e8bc1474
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -4,7 +4,7 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "stash";
version = "0.1.0";
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
src = let
fs = lib.fileset;