1
Fork 0
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:
Bloxx12 2025-05-09 20:53:03 +02:00
parent 50a9a673bd
commit 5a532c2b82
No known key found for this signature in database
4 changed files with 37 additions and 8 deletions

18
nix/package.nix Normal file
View 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;
}