mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00: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
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchgit, skalibs }:
|
|
|
|
let
|
|
|
|
version = "2.1.4.5";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "execline-${version}";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.skarnet.org/execline";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "1k4db9iyskrqf6wbc4dkiqgpn0wb43qc9rf1br7kvy9rrzq3yrj0";
|
|
};
|
|
|
|
dontDisableStatic = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [
|
|
"--libdir=\${prefix}/lib"
|
|
"--includedir=\${prefix}/include"
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
"--with-include=${skalibs}/include"
|
|
"--with-lib=${skalibs}/lib"
|
|
"--with-dynlib=${skalibs}/lib"
|
|
]
|
|
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
|
|
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}");
|
|
|
|
meta = {
|
|
homepage = http://skarnet.org/software/execline/;
|
|
description = "A small scripting language, to be used in place of a shell in non-interactive scripts";
|
|
platforms = stdenv.lib.platforms.all;
|
|
license = stdenv.lib.licenses.isc;
|
|
maintainers = with stdenv.lib.maintainers; [ pmahoney ];
|
|
};
|
|
|
|
}
|