2024-04-21 15:54:59 +00:00
|
|
|
{ lib, skawarePackages, skalibs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
skawarePackages.buildPackage {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "s6-linux-utils";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.6.2.0";
|
|
|
|
sha256 = "j5RGM8qH09I+DwPJw4PRUC1QjJusFtOMP79yOl6rK7c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
description = "A set of minimalistic Linux-specific system utilities";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "doc" "out" ];
|
|
|
|
|
|
|
|
# TODO: nsss support
|
|
|
|
configureFlags = [
|
|
|
|
"--bindir=\${bin}/bin"
|
|
|
|
"--includedir=\${dev}/include"
|
|
|
|
"--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs.dev}/include"
|
|
|
|
"--with-lib=${skalibs.lib}/lib"
|
|
|
|
"--with-dynlib=${skalibs.lib}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# remove all s6 executables from build directory
|
2022-07-14 12:49:19 +00:00
|
|
|
rm $(find -name "s6-*" -type f -mindepth 1 -maxdepth 1 -executable) rngseed
|
2023-04-12 12:48:02 +00:00
|
|
|
rm libs6ps.a.xyzzy
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mv doc $doc/share/doc/s6-linux-utils/html
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|