s6-networking: new package
s6-networking is a suite of small networking utilities for Unix systems including UCSPI Unix and TCP tools, access control tools, and network time management utilities.
This commit is contained in:
parent
1030ca0550
commit
9247013255
63
pkgs/tools/networking/s6-networking/default.nix
Normal file
63
pkgs/tools/networking/s6-networking/default.nix
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
{ stdenv
|
||||||
|
, execline
|
||||||
|
, fetchurl
|
||||||
|
, s6Dns
|
||||||
|
, skalibs
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
version = "0.1.0.0";
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
name = "s6-networking-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.skarnet.org/software/s6-networking/${name}.tar.gz";
|
||||||
|
sha256 = "1np9m2j1i2450mbcjvpbb56kv3wc2fbyvmv2a039q61j2lk6vjz7";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ skalibs s6Dns execline ];
|
||||||
|
|
||||||
|
sourceRoot = "net/${name}";
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
pushd conf-compile
|
||||||
|
|
||||||
|
printf "$out/bin" > conf-install-command
|
||||||
|
printf "$out/include" > conf-install-include
|
||||||
|
printf "$out/lib" > conf-install-library
|
||||||
|
printf "$out/lib" > conf-install-library.so
|
||||||
|
|
||||||
|
# let nix builder strip things, cross-platform
|
||||||
|
truncate --size 0 conf-stripbins
|
||||||
|
truncate --size 0 conf-striplibs
|
||||||
|
|
||||||
|
printf "${skalibs}/sysdeps" > import
|
||||||
|
|
||||||
|
rm -f path-include
|
||||||
|
rm -f path-library
|
||||||
|
for dep in "${execline}" "${s6Dns}" "${skalibs}"; do
|
||||||
|
printf "%s\n" "$dep/include" >> path-include
|
||||||
|
printf "%s\n" "$dep/lib" >> path-library
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f flag-slashpackage
|
||||||
|
touch flag-allstatic
|
||||||
|
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
patchShebangs src/sys
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.skarnet.org/software/s6-networking/;
|
||||||
|
description = "A suite of small networking utilities for Unix systems.";
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
license = stdenv.lib.licenses.isc;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -2053,6 +2053,8 @@ let
|
||||||
|
|
||||||
s6Dns = callPackage ../tools/networking/s6-dns { };
|
s6Dns = callPackage ../tools/networking/s6-dns { };
|
||||||
|
|
||||||
|
s6Networking = callPackage ../tools/networking/s6-networking { };
|
||||||
|
|
||||||
s6PortableUtils = callPackage ../tools/misc/s6-portable-utils { };
|
s6PortableUtils = callPackage ../tools/misc/s6-portable-utils { };
|
||||||
|
|
||||||
sablotron = callPackage ../tools/text/xml/sablotron { };
|
sablotron = callPackage ../tools/text/xml/sablotron { };
|
||||||
|
|
Loading…
Reference in a new issue