diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-09-08 22:45:08 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-09-08 22:45:54 +0200 |
commit | 25f74ecc8bbb46284db08ce407feb0d77f5180f8 (patch) | |
tree | 3c21a09d9de55e2bd61e5fdc72f71f2fe69b9b97 /pkgs/applications/graphics/c3d | |
parent | c892f77e3725332d5ebf7cc08ba7791c17acb3cd (diff) | |
download | nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar.gz nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar.bz2 nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar.lz nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar.xz nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.tar.zst nixlib-25f74ecc8bbb46284db08ce407feb0d77f5180f8.zip |
c3d: fix darwin build
Diffstat (limited to 'pkgs/applications/graphics/c3d')
-rw-r--r-- | pkgs/applications/graphics/c3d/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/c3d/default.nix b/pkgs/applications/graphics/c3d/default.nix index a254993a016b..74631e88ebfb 100644 --- a/pkgs/applications/graphics/c3d/default.nix +++ b/pkgs/applications/graphics/c3d/default.nix @@ -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; |