mirror of
https://github.com/RGBCube/dix
synced 2025-07-27 03:37:45 +00:00
18 lines
374 B
Nix
18 lines
374 B
Nix
{
|
|
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 = true;
|
|
}
|