2016-07-31 21:41:56 +02:00
|
|
|
{ stdenv, fetchurl, skalibs, gcc }:
|
2014-08-30 07:05:23 +02:00
|
|
|
|
2017-03-06 01:00:50 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-03-03 03:22:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-30 07:05:23 +02:00
|
|
|
name = "s6-portable-utils-${version}";
|
2017-11-12 23:39:09 +01:00
|
|
|
version = "2.2.1.1";
|
2014-08-30 07:05:23 +02:00
|
|
|
|
2016-07-31 21:41:56 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz";
|
2017-11-12 23:39:09 +01:00
|
|
|
sha256 = "0ca5iiq3n6isj64jb81xpwjzjx1q8jg145nnnn91ra2qqk93kqka";
|
2014-08-30 07:05:23 +02:00
|
|
|
};
|
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
dontDisableStatic = true;
|
2017-03-06 02:35:53 +01:00
|
|
|
|
2017-03-06 01:53:27 +01:00
|
|
|
configureFlags = [
|
2016-07-31 21:41:56 +02:00
|
|
|
"--enable-absolute-paths"
|
2017-03-06 02:35:53 +01:00
|
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs}/include"
|
|
|
|
"--with-lib=${skalibs}/lib"
|
|
|
|
"--with-dynlib=${skalibs}/lib"
|
2017-03-27 00:30:41 +02: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 02:35:53 +01:00
|
|
|
|
2017-03-06 01:00:50 +01:00
|
|
|
meta = {
|
2014-08-30 07:05:23 +02:00
|
|
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A set of tiny general Unix utilities optimized for simplicity and small size";
|
2017-03-03 03:22:54 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ pmahoney ];
|
2014-08-30 07:05:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|