2015-01-15 22:10:07 +00:00
|
|
|
{ stdenv, execline, fetchgit, skalibs }:
|
2014-08-23 04:42:13 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2016-03-30 16:15:20 +00:00
|
|
|
version = "2.2.4.3";
|
2014-08-23 04:42:13 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "s6-${version}";
|
|
|
|
|
2015-01-15 22:10:07 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.skarnet.org/s6";
|
|
|
|
rev = "refs/tags/v${version}";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "1jlavi3q6wmcxdcwsy42qcgfkl0ag6hwcgmi4g67dvqs9nqjq2a3";
|
2014-08-23 04:42:13 +00:00
|
|
|
};
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
dontDisableStatic = true;
|
2014-08-23 04:42:13 +00:00
|
|
|
|
2015-01-15 22:10:07 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs}/include"
|
|
|
|
"--with-include=${execline}/include"
|
|
|
|
"--with-lib=${skalibs}/lib"
|
|
|
|
"--with-lib=${execline}/lib"
|
|
|
|
"--with-dynlib=${skalibs}/lib"
|
|
|
|
"--with-dynlib=${execline}/lib"
|
2016-04-01 15:20:13 +00:00
|
|
|
]
|
|
|
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
2014-08-23 04:42:13 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace "src/daemontools-extras/s6-log.c" \
|
|
|
|
--replace '"execlineb"' '"${execline}/bin/execlineb"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.skarnet.org/software/s6/;
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "skarnet.org's small & secure supervision software suite";
|
2014-08-23 04:42:13 +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-23 04:42:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|