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:
parent
c892f77e37
commit
25f74ecc8b
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue