mirror of
https://github.com/RGBCube/dix
synced 2025-07-27 19:57:44 +00:00
feat: working nix flake
This commit is contained in:
parent
50a9a673bd
commit
5a532c2b82
4 changed files with 37 additions and 8 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 = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue