add package build
This commit is contained in:
parent
02736ccb6f
commit
83c5a8ccbd
|
@ -1 +1,2 @@
|
|||
/target
|
||||
result*
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs ? (import (import ./nix/sources.nix).nixpkgs { }) }:
|
||||
|
||||
let
|
||||
sources = import ./nix/sources.nix;
|
||||
srcNoTarget = dir:
|
||||
builtins.filterSource
|
||||
(path: type: type != "directory" || builtins.baseNameOf path != "target")
|
||||
dir;
|
||||
naersk = pkgs.callPackage sources.naersk { };
|
||||
in naersk.buildPackage {
|
||||
src = srcNoTarget ./.;
|
||||
remapPathPrefix = true;
|
||||
buildInputs = with pkgs; [ pkg-config openssl xorg.libX11 ];
|
||||
}
|
|
@ -1,4 +1,16 @@
|
|||
{
|
||||
"naersk": {
|
||||
"branch": "master",
|
||||
"description": "Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly.",
|
||||
"homepage": "",
|
||||
"owner": "nmattia",
|
||||
"repo": "naersk",
|
||||
"rev": "1dd63230066a93c61ab7a66934eb0aae3f1a3613",
|
||||
"sha256": "1xn8m62ypg13jh4zf101qmfa6gy8cl923fgwvk9c33m573h3k154",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/nmattia/naersk/archive/1dd63230066a93c61ab7a66934eb0aae3f1a3613.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"niv": {
|
||||
"branch": "master",
|
||||
"description": "Easy dependency management for Nix projects",
|
||||
|
|
Loading…
Reference in New Issue