2015-01-01 19:34:16 +00:00
|
|
|
{ stdenv, execline, fetchurl, skalibs }:
|
2014-08-23 04:42:13 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
version = "2.0.0.0";
|
2014-08-23 04:42:13 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "s6-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.skarnet.org/software/s6/${name}.tar.gz";
|
2014-12-23 16:06:27 +00:00
|
|
|
sha256 = "14x4l3xp152c9v34zs7nzxzacizfpp0k0lzwh40rxm0w5wz4x0ls";
|
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
|
|
|
|
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"
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin [ "--disable-shared" ];
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|