diff options
author | Patrick Mahoney <pat@polycrystal.org> | 2014-08-30 00:07:45 -0500 |
---|---|---|
committer | Patrick Mahoney <pat@polycrystal.org> | 2014-08-30 00:07:45 -0500 |
commit | 9247013255acfe2a81c5a6fa7c1bee1febef7d09 (patch) | |
tree | 7393a05a786afa9e4c28741c6b62634ab30d4ca7 /pkgs/tools/networking/s6-networking | |
parent | 1030ca055012483d9b226c117e81ba1693e2ce2e (diff) | |
download | nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar.gz nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar.bz2 nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar.lz nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar.xz nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.tar.zst nixpkgs-9247013255acfe2a81c5a6fa7c1bee1febef7d09.zip |
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.
Diffstat (limited to 'pkgs/tools/networking/s6-networking')
-rw-r--r-- | pkgs/tools/networking/s6-networking/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/tools/networking/s6-networking/default.nix b/pkgs/tools/networking/s6-networking/default.nix new file mode 100644 index 00000000000..3d5e3e04811 --- /dev/null +++ b/pkgs/tools/networking/s6-networking/default.nix @@ -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; + }; + +} |