1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

c3d: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-08 22:45:08 +02:00
parent c892f77e37
commit 25f74ecc8b
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 9 additions and 6 deletions

View file

@ -1,9 +1,9 @@
{ stdenv, fetchgit, cmake, itk }:
{ stdenv, fetchgit, cmake, itk, Cocoa }:
stdenv.mkDerivation rec {
_name = "c3d";
_version = "1.1.0";
name = "${_name}-${_version}";
name = "${pname}-${version}";
pname = "c3d";
version = "1.1.0";
src = fetchgit {
url = "https://git.code.sf.net/p/c3d/git";
@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ itk ];
buildInputs = [ itk ]
++ stdenv.lib.optional stdenv.isDarwin Cocoa;
meta = with stdenv.lib; {
homepage = http://www.itksnap.org/c3d;

View file

@ -793,7 +793,9 @@ with pkgs;
burpsuite = callPackage ../tools/networking/burpsuite {};
c3d = callPackage ../applications/graphics/c3d {};
c3d = callPackage ../applications/graphics/c3d {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
cabal2nix = haskell.lib.overrideCabal haskellPackages.cabal2nix (drv: {
isLibrary = false;