2021-01-25 08:26:54 +00:00
|
|
|
{ lib, skawarePackages }:
|
2015-09-25 02:15:36 +01:00
|
|
|
|
2018-09-02 22:31:26 +01:00
|
|
|
with skawarePackages;
|
2015-09-25 02:15:36 +01:00
|
|
|
|
2018-09-02 22:31:26 +01:00
|
|
|
buildPackage {
|
|
|
|
pname = "s6-rc";
|
2021-06-15 14:51:05 +01:00
|
|
|
version = "0.5.2.2";
|
|
|
|
sha256 = "12bzc483jpd16xmhfsfrib84daj1k3kwy5s5nc18ap60apa1r39a";
|
2015-09-25 02:15:36 +01:00
|
|
|
|
2018-09-02 22:31:26 +01:00
|
|
|
description = "A service manager for s6-based systems";
|
2021-08-18 18:33:31 +01:00
|
|
|
platforms = lib.platforms.unix;
|
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
|
|
|
configureFlags = [
|
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"
|
2018-09-02 22:31:26 +01:00
|
|
|
];
|
2015-09-25 02:15:36 +01:00
|
|
|
|
2018-07-22 16:03:19 +01:00
|
|
|
postInstall = ''
|
2018-09-02 22:31:26 +01:00
|
|
|
# remove all s6 executables from build directory
|
|
|
|
rm $(find -name "s6-rc-*" -type f -mindepth 1 -maxdepth 1 -executable)
|
|
|
|
rm s6-rc libs6rc.*
|
|
|
|
|
2018-07-22 16:03:19 +01:00
|
|
|
mv doc $doc/share/doc/s6-rc/html
|
|
|
|
mv examples $doc/share/doc/s6-rc/examples
|
|
|
|
'';
|
|
|
|
|
2015-09-25 02:15:36 +01:00
|
|
|
}
|