mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
37ae6de95d
The website gives no indication that version 4.x is required to build this package, and even it if were, then there should be an override in all-packages.nix instead of referring to the 'gnumake40' attribute directly in this expression.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ stdenv, execline, fetchurl, skalibs }:
|
|
|
|
let
|
|
|
|
version = "2.0.0.0";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "s6-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.skarnet.org/software/s6/${name}.tar.gz";
|
|
sha256 = "14x4l3xp152c9v34zs7nzxzacizfpp0k0lzwh40rxm0w5wz4x0ls";
|
|
};
|
|
|
|
dontDisableStatic = true;
|
|
|
|
configureFlags = [
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
"--with-include=${skalibs}/include"
|
|
"--with-include=${execline}/include"
|
|
"--with-lib=${skalibs}/lib"
|
|
"--with-lib=${execline}/lib"
|
|
"--with-dynlib=${skalibs}/lib"
|
|
"--with-dynlib=${execline}/lib"
|
|
] ++ stdenv.lib.optional stdenv.isDarwin [ "--disable-shared" ];
|
|
|
|
preBuild = ''
|
|
substituteInPlace "src/daemontools-extras/s6-log.c" \
|
|
--replace '"execlineb"' '"${execline}/bin/execlineb"'
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.skarnet.org/software/s6/;
|
|
description = "skarnet.org's small & secure supervision software suite";
|
|
platforms = stdenv.lib.platforms.all;
|
|
license = stdenv.lib.licenses.isc;
|
|
};
|
|
|
|
}
|