lrs: set CC, fix cross compilation

Nick Cao 44acd641 30c0a2f7

+8 -7
+8 -7
pkgs/development/libraries/science/math/lrs/default.nix
··· 1 - {lib, stdenv, fetchurl, gmp}: 1 + { lib, stdenv, fetchurl, gmp }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation { 4 4 pname = "lrs"; 5 5 version = "7.2"; 6 6 ··· 11 11 12 12 buildInputs = [ gmp ]; 13 13 14 - preBuild = '' 15 - export makeFlags="$makeFlags prefix=$out"; 16 - ''; 14 + makeFlags = [ 15 + "prefix=${placeholder "out"}" 16 + "CC:=$(CC)" 17 + ]; 17 18 18 19 meta = { 19 20 description = "Implementation of the reverse search algorithm for vertex enumeration/convex hull problems"; 20 - license = lib.licenses.gpl2 ; 21 - maintainers = [lib.maintainers.raskin]; 21 + license = lib.licenses.gpl2; 22 + maintainers = [ lib.maintainers.raskin ]; 22 23 platforms = lib.platforms.linux; 23 24 homepage = "http://cgm.cs.mcgill.ca/~avis/C/lrs.html"; 24 25 };