mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
36 lines
995 B
Nix
36 lines
995 B
Nix
{ stdenv, fetchFromGitHub, skalibs, gcc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "s6-portable-utils-${version}";
|
|
version = "2.1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skarnet";
|
|
repo = "s6-portable-utils";
|
|
rev = "v${version}";
|
|
sha256 = "0k5pcwc45jw5l8ycz03wx2w4pds0wp4ll47d3i5i1j02i9v0rhc9";
|
|
};
|
|
|
|
dontDisableStatic = true;
|
|
|
|
# Darwin Support, optional isDarwin failed
|
|
nativeBuildInputs = [ gcc ];
|
|
|
|
configureFlags = [
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
"--with-include=${skalibs}/include"
|
|
"--with-lib=${skalibs}/lib"
|
|
"--with-dynlib=${skalibs}/lib"
|
|
]
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
|
description = "A set of tiny general Unix utilities optimized for simplicity and small size";
|
|
platforms = platforms.all;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ pmahoney ];
|
|
};
|
|
|
|
}
|