nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 skawarePackages,
4 skalibs,
5}:
6
7skawarePackages.buildPackage {
8 pname = "s6-portable-utils";
9 version = "2.3.1.0";
10 sha256 = "sha256-BCRKqHrixBLUmZdptec8tCivugwuiqkhWzo2574qgPk=";
11
12 manpages = skawarePackages.buildManPages {
13 pname = "s6-portable-utils-man-pages";
14 version = "2.3.0.4.1";
15 sha256 = "sha256-LbXa+fecxYyFdVmEHT8ch4Y8Pf1YIyd9Gia3zujxUgs=";
16 description = "Port of the documentation for the s6-portable-utils suite to mdoc";
17 maintainers = [ lib.maintainers.somasis ];
18 };
19
20 description = "Set of tiny general Unix utilities optimized for simplicity and small size";
21
22 outputs = [
23 "bin"
24 "dev"
25 "doc"
26 "out"
27 ];
28
29 configureFlags = [
30 "--bindir=\${bin}/bin"
31 "--includedir=\${dev}/include"
32 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
33 "--with-include=${skalibs.dev}/include"
34 "--with-lib=${skalibs.lib}/lib"
35 "--with-dynlib=${skalibs.lib}/lib"
36 ];
37
38 postInstall = ''
39 # remove all s6 executables from build directory
40 rm $(find -name "s6-*" -type f -mindepth 1 -maxdepth 1 -executable)
41 rm seekablepipe
42
43 mv doc $doc/share/doc/s6-portable-utils/html
44 '';
45
46}