vulkano/nix/package.nix

19 lines
375 B
Nix
Raw Normal View History

2025-04-03 10:17:58 +02:00
{
rustPlatform,
lib,
...
}: let
toml = (lib.importTOML ../Cargo.toml).package;
pname = toml.name;
inherit (toml) version;
in
rustPlatform.buildRustPackage {
inherit pname version;
src = builtins.path {
name = "${pname}-${version}";
path = lib.sources.cleanSource ../.;
};
cargoLock.lockFile = ../Cargo.lock;
doCheck = false;
}