at v192 44 lines 1.2 kB view raw
1{ stdenv, execline, fetchgit, skalibs }: 2 3let 4 5 version = "2.1.3.0"; 6 7in stdenv.mkDerivation rec { 8 9 name = "s6-${version}"; 10 11 src = fetchgit { 12 url = "git://git.skarnet.org/s6"; 13 rev = "refs/tags/v${version}"; 14 sha256 = "0dnwkdxqjv5awdgwxci1spcx1s13y5s9wd8ccskwv1rymvpgn8b3"; 15 }; 16 17 dontDisableStatic = true; 18 19 enableParallelBuilding = true; 20 21 configureFlags = [ 22 "--with-sysdeps=${skalibs}/lib/skalibs/sysdeps" 23 "--with-include=${skalibs}/include" 24 "--with-include=${execline}/include" 25 "--with-lib=${skalibs}/lib" 26 "--with-lib=${execline}/lib" 27 "--with-dynlib=${skalibs}/lib" 28 "--with-dynlib=${execline}/lib" 29 ] ++ [ (if stdenv.isDarwin then "--disable-shared" else "--enable-shared") ]; 30 31 preBuild = '' 32 substituteInPlace "src/daemontools-extras/s6-log.c" \ 33 --replace '"execlineb"' '"${execline}/bin/execlineb"' 34 ''; 35 36 meta = { 37 homepage = http://www.skarnet.org/software/s6/; 38 description = "skarnet.org's small & secure supervision software suite"; 39 platforms = stdenv.lib.platforms.all; 40 license = stdenv.lib.licenses.isc; 41 maintainers = with stdenv.lib.maintainers; [ pmahoney ]; 42 }; 43 44}