Files
jj-cz/nix/package.nix

17 lines
337 B
Nix
Raw Normal View History

2026-02-05 16:25:14 +01:00
{
rustPlatform,
...
}: let
cargoToml = fromTOML (builtins.readFile ../Cargo.toml);
name = cargoToml.package.name;
version = cargoToml.package.version;
rustBuild = rustPlatform.buildRustPackage {
pname = name;
inherit version;
src = ../.;
cargoLock.lockFile = ../Cargo.lock;
};
in {
default = rustBuild;
}