Initial commit

This commit is contained in:
Aleksandr 2025-10-07 01:16:35 +03:00
commit c826b8a819
15 changed files with 4417 additions and 0 deletions

15
nix/package.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, rust, crane }:
let
craneLib = (crane.mkLib pkgs).overrideToolchain (p: rust);
src = craneLib.cleanCargoSource ../.;
common = {
inherit src;
strictDeps = true;
};
cargoArtifacts = craneLib.buildDepsOnly common;
in
craneLib.buildPackage (common // {
inherit cargoArtifacts;
})