2017-03-05 23:52:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, 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-03-03 03:22:54 +01:00
|
|
|
version = "2.1.0.0";
|
2014-08-30 07:05:23 +02:00
|
|
|
|
2017-03-03 03:22:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skarnet";
|
|
|
|
repo = "s6-portable-utils";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0k5pcwc45jw5l8ycz03wx2w4pds0wp4ll47d3i5i1j02i9v0rhc9";
|
2014-08-30 07:05:23 +02:00
|
|
|
};
|
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
dontDisableStatic = true;
|
2017-03-05 23:52:20 +01:00
|
|
|
|
2017-03-06 01:00:50 +01:00
|
|
|
nativeBuildInputs = []
|
|
|
|
++ optional stdenv.isDarwin gcc;
|
2017-03-05 23:52:20 +01:00
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs}/include"
|
|
|
|
"--with-lib=${skalibs}/lib"
|
|
|
|
"--with-dynlib=${skalibs}/lib"
|
2016-04-01 17:20:13 +02:00
|
|
|
]
|
2017-03-06 01:00:50 +01:00
|
|
|
++ (optional stdenv.isDarwin "--target=${stdenv.system}")
|
|
|
|
++ (optional stdenv.isDarwin "--with-gcc=${gcc}/bin");
|
2014-08-30 07:05:23 +02: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
|
|
|
};
|
|
|
|
|
|
|
|
}
|