2015-09-25 02:15:36 +01:00
|
|
|
{ stdenv, execline, fetchgit, skalibs, s6 }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-07-27 08:09:36 +01:00
|
|
|
version = "0.4.0.1";
|
2015-09-25 02:15:36 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "s6-rc-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.skarnet.org/s6-rc";
|
|
|
|
rev = "refs/tags/v${version}";
|
2018-07-27 08:09:36 +01:00
|
|
|
sha256 = "10gkkdbvkb4s2yshx425v9diwm7vvbl320a2bm0c3wz71xr94wsw";
|
2015-09-25 02:15:36 +01:00
|
|
|
};
|
|
|
|
|
2018-07-22 16:03:19 +01:00
|
|
|
outputs = [ "bin" "lib" "dev" "doc" "out" ];
|
|
|
|
|
2015-09-25 02:15:36 +01:00
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
2016-07-31 20:41:56 +01:00
|
|
|
"--enable-absolute-paths"
|
2018-07-22 16:03:19 +01: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-lib=${skalibs.lib}/lib"
|
|
|
|
"--with-lib=${execline.lib}/lib"
|
|
|
|
"--with-lib=${s6.out}/lib"
|
|
|
|
"--with-dynlib=${skalibs.lib}/lib"
|
|
|
|
"--with-dynlib=${execline.lib}/lib"
|
|
|
|
"--with-dynlib=${s6.out}/lib"
|
2016-04-01 16:20:13 +01:00
|
|
|
]
|
|
|
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
2018-08-20 20:11:29 +01:00
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
|
2015-09-25 02:15:36 +01:00
|
|
|
|
2018-07-22 16:03:19 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $doc/share/doc/s6-rc/
|
|
|
|
mv doc $doc/share/doc/s6-rc/html
|
|
|
|
mv examples $doc/share/doc/s6-rc/examples
|
|
|
|
'';
|
|
|
|
|
2015-09-25 02:15:36 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://skarnet.org/software/s6-rc/;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A service manager for s6-based systems";
|
2018-03-25 14:09:21 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-09-25 02:15:36 +01:00
|
|
|
license = stdenv.lib.licenses.isc;
|
2018-07-22 20:44:10 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ pmahoney Profpatsch ];
|
2015-09-25 02:15:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|