nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 49 lines 1.5 kB view raw
1{ lib, skawarePackages, skalibs, execline }: 2 3skawarePackages.buildPackage { 4 pname = "s6"; 5 version = "2.13.0.0"; 6 sha256 = "fkb49V2Auw4gJaZNXWSa9KSsIeNIAgyqrd4wul5bSDA="; 7 8 manpages = skawarePackages.buildManPages { 9 pname = "s6-man-pages"; 10 version = "2.13.0.0.1"; 11 sha256 = "oZgyJ2mPxpgsV2Le29XM+NsjMhqvDQ70SUZ2gjYg5U8="; 12 description = "Port of the documentation for the s6 supervision suite to mdoc"; 13 maintainers = [ lib.maintainers.sternenseemann ]; 14 }; 15 16 description = "skarnet.org's small & secure supervision software suite"; 17 18 # NOTE lib: cannot split lib from bin at the moment, 19 # since some parts of lib depend on executables in bin. 20 # (the `*_startf` functions in `libs6`) 21 outputs = [ /*"bin" "lib"*/ "out" "dev" "doc" ]; 22 23 # TODO: nsss support 24 configureFlags = [ 25 "--libdir=\${out}/lib" 26 "--libexecdir=\${out}/libexec" 27 "--dynlibdir=\${out}/lib" 28 "--bindir=\${out}/bin" 29 "--includedir=\${dev}/include" 30 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps" 31 "--with-include=${skalibs.dev}/include" 32 "--with-include=${execline.dev}/include" 33 "--with-lib=${skalibs.lib}/lib" 34 "--with-lib=${execline.lib}/lib" 35 "--with-dynlib=${skalibs.lib}/lib" 36 "--with-dynlib=${execline.lib}/lib" 37 ]; 38 39 postInstall = '' 40 # remove all s6 executables from build directory 41 rm $(find -type f -mindepth 1 -maxdepth 1 -executable) 42 rm libs6.* 43 rm ./libs6auto.a.xyzzy 44 45 mv doc $doc/share/doc/s6/html 46 mv examples $doc/share/doc/s6/examples 47 ''; 48 49}