mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
fc1f5d2cf1
skalibs: execline: s6-dns: s6-networking: s6-portable-utils: s6-rc: s6: The above software uses the target triplet from `cc -dumpmachine` as a binary compatibility check. However, on darwin, the output includes the darwin version number, which leads to build failures against a binary skalibs package built a different version of darwin than the current system. Explicitly setting target ensures code can be compiled against a skalibs binary built on a different version of darwin. See http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
34 lines
917 B
Nix
34 lines
917 B
Nix
{ stdenv, fetchurl, skalibs }:
|
|
|
|
let
|
|
|
|
version = "2.0.5.3";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "s6-portable-utils-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz";
|
|
sha256 = "029fg9c37vwh9yagd69h8r192nrx4mfva8dwgpm1gxkdssrh3gi7";
|
|
};
|
|
|
|
dontDisableStatic = true;
|
|
|
|
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 = {
|
|
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
|
description = "A set of tiny general Unix utilities optimized for simplicity and small size";
|
|
platforms = stdenv.lib.platforms.all;
|
|
license = stdenv.lib.licenses.isc;
|
|
maintainers = with stdenv.lib.maintainers; [ pmahoney ];
|
|
};
|
|
|
|
}
|