Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper }:
|
||||
assert stdenv.isLinux;
|
||||
assert stdenv.gcc.gcc != null;
|
||||
assert stdenv.cc.gcc != null;
|
||||
let
|
||||
version = "0.7";
|
||||
debianPatch = fetchurl {
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ readline tcp_wrappers pcre makeWrapper ];
|
||||
patches = [ debianPatch ];
|
||||
postInstall = ''
|
||||
wrapProgram $out/sbin/atftpd --prefix LD_LIBRARY_PATH : ${stdenv.gcc.gcc}/lib${if stdenv.system == "x86_64-linux" then "64" else ""}
|
||||
wrapProgram $out/sbin/atftpd --prefix LD_LIBRARY_PATH : ${stdenv.cc.gcc}/lib${if stdenv.system == "x86_64-linux" then "64" else ""}
|
||||
'';
|
||||
meta = {
|
||||
description = "Advanced tftp tools";
|
||||
|
||||
Reference in New Issue
Block a user