2018-07-22 15:03:19 +00:00
|
|
|
{ stdenv, execline, fetchgit, s6, s6-dns, skalibs }:
|
2014-08-30 05:07:45 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-11-12 22:39:09 +00:00
|
|
|
version = "2.3.0.2";
|
2014-08-30 05:07:45 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "s6-networking-${version}";
|
|
|
|
|
2015-01-15 22:11:58 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.skarnet.org/s6-networking";
|
|
|
|
rev = "refs/tags/v${version}";
|
2017-11-12 22:39:09 +00:00
|
|
|
sha256 = "1qrhca8yjaysrqf7nx3yjfyfi9yly3rxpgrd2sqj0a0ckk73rv42";
|
2014-08-30 05:07:45 +00:00
|
|
|
};
|
|
|
|
|
2018-07-22 15:03:19 +00:00
|
|
|
outputs = [ "bin" "lib" "dev" "doc" "out" ];
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2015-01-15 22:11:58 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
configureFlags = [
|
2016-07-31 19:41:56 +00:00
|
|
|
"--enable-absolute-paths"
|
2018-07-22 15:03:19 +00:00
|
|
|
"--libdir=\${lib}/lib"
|
|
|
|
"--libexecdir=\${lib}/libexec"
|
|
|
|
"--dynlibdir=\${lib}/lib"
|
|
|
|
"--bindir=\${bin}/bin"
|
|
|
|
"--includedir=\${dev}/include"
|
|
|
|
"--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs.dev}/include"
|
|
|
|
"--with-include=${execline.dev}/include"
|
|
|
|
"--with-include=${s6.dev}/include"
|
|
|
|
"--with-include=${s6-dns.dev}/include"
|
|
|
|
"--with-lib=${skalibs.lib}/lib"
|
|
|
|
"--with-lib=${execline.lib}/lib"
|
|
|
|
"--with-lib=${s6.out}/lib"
|
|
|
|
"--with-lib=${s6-dns.lib}/lib"
|
|
|
|
"--with-dynlib=${skalibs.lib}/lib"
|
|
|
|
"--with-dynlib=${execline.lib}/lib"
|
|
|
|
"--with-dynlib=${s6.out}/lib"
|
|
|
|
"--with-dynlib=${s6-dns.lib}/lib"
|
2016-04-01 15:20:13 +00:00
|
|
|
]
|
2017-03-26 22:30:41 +00:00
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
2014-08-30 05:07:45 +00:00
|
|
|
|
2018-07-22 15:03:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $doc/share/doc/s6-networking/
|
|
|
|
mv doc $doc/share/doc/s6-networking/html
|
|
|
|
'';
|
|
|
|
|
2014-08-30 05:07:45 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.skarnet.org/software/s6-networking/;
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A suite of small networking utilities for Unix systems";
|
2014-08-30 05:07:45 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
2015-06-01 20:16:51 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ pmahoney ];
|
2014-08-30 05:07:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|