Initial commit
This commit is contained in:
commit
c826b8a819
15 changed files with 4417 additions and 0 deletions
15
nix/package.nix
Normal file
15
nix/package.nix
Normal 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;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue