Merge pull request #146966 from flurie/fix-bicgl-x86_64-darwin

bicgl: fix build for x86_64-darwin
This commit is contained in:
Dmitry Kalinkin 2021-11-22 14:32:06 -05:00 committed by GitHub
commit 65ee0d2498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View file

@ -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"

View file

@ -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