2016-07-31 20:41:56 +01:00
|
|
|
{ stdenv, fetchurl, skalibs, gcc }:
|
2014-08-30 06:05:23 +01:00
|
|
|
|
2017-03-06 00:00:50 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-03-03 02:22:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-30 06:05:23 +01:00
|
|
|
name = "s6-portable-utils-${version}";
|
2017-03-03 02:22:54 +00:00
|
|
|
version = "2.1.0.0";
|
2014-08-30 06:05:23 +01:00
|
|
|
|
2016-07-31 20:41:56 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz";
|
|
|
|
sha256 = "0khw5ljmlghvl4hyrf4vd0hl5rrmsspchi8w4xgniwfip6vlbqfd";
|
2014-08-30 06:05:23 +01:00
|
|
|
};
|
|
|
|
|
2014-12-23 16:06:27 +00:00
|
|
|
dontDisableStatic = true;
|
2017-03-06 01:35:53 +00:00
|
|
|
|
2017-03-06 00:53:27 +00:00
|
|
|
configureFlags = [
|
2016-07-31 20:41:56 +01:00
|
|
|
"--enable-absolute-paths"
|
2017-03-06 01:35:53 +00:00
|
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs}/include"
|
|
|
|
"--with-lib=${skalibs}/lib"
|
|
|
|
"--with-dynlib=${skalibs}/lib"
|
2017-03-26 23:30:41 +01:00
|
|
|
]
|
|
|
|
# On darwin, the target triplet from -dumpmachine includes version number, but
|
|
|
|
# skarnet.org software uses the triplet to test binary compatibility.
|
|
|
|
# Explicitly setting target ensures code can be compiled against a skalibs
|
|
|
|
# binary built on a different version of darwin.
|
|
|
|
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
|
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
|
2017-03-06 01:35:53 +00:00
|
|
|
|
2017-03-06 00:00:50 +00:00
|
|
|
meta = {
|
2014-08-30 06:05:23 +01:00
|
|
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A set of tiny general Unix utilities optimized for simplicity and small size";
|
2017-03-03 02:22:54 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ pmahoney ];
|
2014-08-30 06:05:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|