Merge pull request #146966 from flurie/fix-bicgl-x86_64-darwin
bicgl: fix build for x86_64-darwin
This commit is contained in:
commit
65ee0d2498
2 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, libminc, bicpl, freeglut, mesa_glu }:
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, libminc, bicpl, freeglut, mesa_glu, GLUT }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bicgl";
|
||||
|
@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libminc bicpl freeglut mesa_glu ];
|
||||
buildInputs = [ libminc bicpl mesa_glu ]
|
||||
++ lib.optionals stdenv.isDarwin [ GLUT ]
|
||||
++ lib.optionals stdenv.isLinux [ freeglut ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLIBMINC_DIR=${libminc}/lib/cmake"
|
||||
|
|
|
@ -15727,7 +15727,7 @@ with pkgs;
|
|||
|
||||
bicpl = callPackage ../development/libraries/science/biology/bicpl { };
|
||||
|
||||
bicgl = callPackage ../development/libraries/science/biology/bicgl { };
|
||||
bicgl = callPackage ../development/libraries/science/biology/bicgl { inherit (darwin.apple_sdk.frameworks) GLUT; };
|
||||
|
||||
# TODO(@Ericson2314): Build bionic libc from source
|
||||
bionic = if stdenv.hostPlatform.useAndroidPrebuilt
|
||||
|
|
Loading…
Reference in a new issue