mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
foma: fix darwin build
This commit is contained in:
parent
838e396944
commit
3de0119f45
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, zlib, flex, bison, readline }:
|
||||
{ lib, stdenv, fetchFromGitHub, zlib, flex, bison, readline, darwin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "foma";
|
||||
@ -13,9 +13,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
sourceRoot = "source/foma";
|
||||
|
||||
nativeBuildInputs = [ flex bison ];
|
||||
nativeBuildInputs = [ flex bison ]
|
||||
++ lib.optional stdenv.isDarwin darwin.cctools;
|
||||
buildInputs = [ zlib readline ];
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '-ltermcap' ' ' \
|
||||
|
Loading…
Reference in New Issue
Block a user