initial commit
This commit is contained in:
commit
aa8e101800
8 changed files with 197 additions and 0 deletions
18
nix/package.nix
Normal file
18
nix/package.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue