Unverified Commit 7beaf651 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

Merge pull request #238394 from NickCao/lrs

lrs: set CC, fix cross compilation
parents 63e4a839 44acd641
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, gmp }:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
  pname = "lrs";
  version = "7.2";

@@ -11,9 +11,10 @@ stdenv.mkDerivation rec {

  buildInputs = [ gmp ];

  preBuild = ''
    export makeFlags="$makeFlags prefix=$out";
  '';
  makeFlags = [
    "prefix=${placeholder "out"}"
    "CC:=$(CC)"
  ];

  meta = {
    description = "Implementation of the reverse search algorithm for vertex enumeration/convex hull problems";