2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl, skalibs }:
|
2014-08-29 22:05:23 -07:00
|
|
|
|
2017-03-05 16:00:50 -08:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-03-02 18:22:54 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 22:05:23 -07:00
|
|
|
name = "s6-portable-utils-${version}";
|
2017-11-12 14:39:09 -08:00
|
|
|
version = "2.2.1.1";
|
2014-08-29 22:05:23 -07:00
|
|
|
|
2016-07-31 12:41:56 -07:00
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz";
|
2017-11-12 14:39:09 -08:00
|
|
|
sha256 = "0ca5iiq3n6isj64jb81xpwjzjx1q8jg145nnnn91ra2qqk93kqka";
|
2014-08-29 22:05:23 -07:00
|
|
|
};
|
|
|
|
|
2018-07-22 08:03:19 -07:00
|
|
|
outputs = [ "bin" "dev" "doc" "out" ];
|
|
|
|
|
2014-12-23 08:06:27 -08:00
|
|
|
dontDisableStatic = true;
|
2017-03-05 17:35:53 -08:00
|
|
|
|
2017-03-05 16:53:27 -08:00
|
|
|
configureFlags = [
|
2016-07-31 12:41:56 -07:00
|
|
|
"--enable-absolute-paths"
|
2018-07-22 08:03:19 -07:00
|
|
|
"--bindir=\${bin}/bin"
|
|
|
|
"--includedir=\${dev}/include"
|
|
|
|
"--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs.dev}/include"
|
|
|
|
"--with-lib=${skalibs.lib}/lib"
|
|
|
|
"--with-dynlib=${skalibs.lib}/lib"
|
2017-03-26 15:30:41 -07: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
|
2018-08-20 12:11:29 -07:00
|
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.hostPlatform.system}");
|
2017-03-05 17:35:53 -08:00
|
|
|
|
2018-07-22 08:03:19 -07:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $doc/share/doc/s6-portable-utils/
|
|
|
|
mv doc $doc/share/doc/s6-portable-utils/html
|
|
|
|
'';
|
|
|
|
|
2017-03-05 16:00:50 -08:00
|
|
|
meta = {
|
2014-08-29 22:05:23 -07:00
|
|
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
2014-11-11 05:20:43 -08:00
|
|
|
description = "A set of tiny general Unix utilities optimized for simplicity and small size";
|
2017-03-02 18:22:54 -08:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.isc;
|
2018-07-22 12:44:10 -07:00
|
|
|
maintainers = with maintainers; [ pmahoney Profpatsch ];
|
2014-08-29 22:05:23 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|