add norouter
This commit is contained in:
parent
0286e0d645
commit
d14037ffd6
3 changed files with 28 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
*~
|
||||
|
|
@ -4,6 +4,7 @@ let
|
|||
cedro = callPackage ./pkgs/c/cedro/package.nix {};
|
||||
capnpc = callPackage ./pkgs/c/capnpc/package.nix {};
|
||||
gost-ctl = callPackage ./pkgs/g/gost-ctl/package.nix {};
|
||||
norouter = callPackage ./pkgs/n/norouter/package.nix {};
|
||||
xbuild = callPackage ./pkgs/x/xbuild/package.nix {
|
||||
pkgs = pkgs;
|
||||
cedro = cedro;
|
||||
|
|
@ -82,6 +83,7 @@ in
|
|||
capnpc = capnpc;
|
||||
cedro = cedro;
|
||||
gost-ctl = gost-ctl;
|
||||
norouter = norouter;
|
||||
zlog_with_pkgconf = zlog_with_pkgconf;
|
||||
tinylog = tinylog;
|
||||
unity_test_with_color = unity_test_with_color;
|
||||
|
|
|
|||
25
pkgs/n/norouter/package.nix
Normal file
25
pkgs/n/norouter/package.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ stdenvNoCC, lib, fetchurl, autoPatchelfHook, zlib, openssl }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "norouter";
|
||||
version = "0.6.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/${pname}-Linux-x86_64.tgz";
|
||||
hash = "sha256-kNAzGBuYLLHITGJAerH27kj8MjmxjII63ORym//rJEk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
buildInputs = [ zlib openssl ]; # Add required libraries
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
configurePhase = ''
|
||||
cat $src |gzip -dc |tar xf -
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp norouter $out/bin
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue