@@ -1,9 +1,9 @@
1−{ stdenv, fetchgit, cmake, itk }:
1+{ stdenv, fetchgit, cmake, itk, Cocoa }:
22
33stdenv.mkDerivation rec {
4− _name = "c3d";
5− _version = "1.1.0";
6− name = "${_name}-${_version}";
4+ name = "${pname}-${version}";
5+ pname = "c3d";
6+ version = "1.1.0";
77
88 src = fetchgit {
99 url = "https://git.code.sf.net/p/c3d/git";
@@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 nativeBuildInputs = [ cmake ];
15− buildInputs = [ itk ];
15+ buildInputs = [ itk ]
16+ ++ stdenv.lib.optional stdenv.isDarwin Cocoa;
1617
1718 meta = with stdenv.lib; {
1819 homepage = http://www.itksnap.org/c3d;