initial commit

This commit is contained in:
Charlie Root 2025-04-03 10:17:58 +02:00
commit 5e2f50c437
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
8 changed files with 798 additions and 0 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 = false;
}