forked from mirrors/nixpkgs
Merge pull request #212592 from wegank/cmus-clang
cmus: remove clangGCC hack
This commit is contained in:
commit
715f7e1ea0
|
@ -88,14 +88,6 @@ let
|
||||||
|
|
||||||
#(mkFlag vtxSupport "CONFIG_VTX=y" libayemu)
|
#(mkFlag vtxSupport "CONFIG_VTX=y" libayemu)
|
||||||
];
|
];
|
||||||
|
|
||||||
clangGCC = runCommand "clang-gcc" {} ''
|
|
||||||
#! ${stdenv.shell}
|
|
||||||
mkdir -p $out/bin
|
|
||||||
ln -s ${stdenv.cc}/bin/clang $out/bin/gcc
|
|
||||||
ln -s ${stdenv.cc}/bin/clang++ $out/bin/g++
|
|
||||||
'';
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -111,17 +103,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [ ./option-debugging.patch ];
|
patches = [ ./option-debugging.patch ];
|
||||||
|
|
||||||
configurePhase = "./configure " + lib.concatStringsSep " " ([
|
|
||||||
"prefix=$out"
|
|
||||||
"CONFIG_WAV=y"
|
|
||||||
] ++ lib.concatMap (a: a.flags) opts);
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ ncurses ]
|
buildInputs = [ ncurses ]
|
||||||
++ lib.optional stdenv.cc.isClang clangGCC
|
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ]
|
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ]
|
||||||
++ lib.flatten (lib.concatMap (a: a.deps) opts);
|
++ lib.flatten (lib.concatMap (a: a.deps) opts);
|
||||||
|
|
||||||
|
prefixKey = "prefix=";
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"CONFIG_WAV=y"
|
||||||
|
"HOSTCC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
] ++ lib.concatMap (a: a.flags) opts;
|
||||||
|
|
||||||
makeFlags = [ "LD=$(CC)" ];
|
makeFlags = [ "LD=$(CC)" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue