From 7a610e8b67b2b30fb84a91cf59d40f25bbd39923 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 29 Sep 2014 13:16:33 -0400 Subject: [PATCH] assimp: initial package expression for version 3.1.1 Open Asset Import Library is a library for importing 3D models in various formats Closes #4352 --- pkgs/development/libraries/assimp/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/assimp/default.nix diff --git a/pkgs/development/libraries/assimp/default.nix b/pkgs/development/libraries/assimp/default.nix new file mode 100644 index 000000000000..229db910ffd2 --- /dev/null +++ b/pkgs/development/libraries/assimp/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, unzip, cmake, boost }: + +let + major = "3"; + minor = "1"; + revision = "1"; + version = "${major}.${minor}.${revision}"; +in +stdenv.mkDerivation { + name = "assimp-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/project/assimp/assimp-${major}.${minor}/assimp-${version}_no_test_models.zip"; + sha256 = "17nyzsqzqpafamhi779f1bkh5mfgj8rpas034x3v9a0hdy3jg66s"; + }; + + buildInputs = [ unzip cmake boost ]; + + meta = with stdenv.lib; { + description = "Open Asset Import Library is a library to import various 3D model formats"; + homepage = http://assimp.sourceforge.net/; + license = licenses.bsd3; + maintainers = with maintainers; [ emery ]; + platfroms = platforms.linux; + inherit version; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 908a99164f82..e6e7355b7bf2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4598,6 +4598,8 @@ let bdbSupport = true; }; + assimp = callPackage ../development/libraries/assimp { }; + asio = callPackage ../development/libraries/asio { }; aspell = callPackage ../development/libraries/aspell { };