2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, skawarePackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with skawarePackages;
|
|
|
|
|
|
|
|
buildPackage {
|
|
|
|
pname = "s6-rc";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "0.5.2.0";
|
|
|
|
sha256 = "1qpygkajalaziszhwfv5rr6hc27q05z8dayyv7im06z6vndimchs";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
description = "A service manager for s6-based systems";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "lib" "dev" "doc" "out" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--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"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# remove all s6 executables from build directory
|
|
|
|
rm $(find -name "s6-rc-*" -type f -mindepth 1 -maxdepth 1 -executable)
|
|
|
|
rm s6-rc libs6rc.*
|
|
|
|
|
|
|
|
mv doc $doc/share/doc/s6-rc/html
|
|
|
|
mv examples $doc/share/doc/s6-rc/examples
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|