1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/development/libraries/lib3mf/default.nix
2019-04-07 11:38:07 +02:00

31 lines
738 B
Nix

{ stdenv, fetchFromGitHub, cmake, ninja, libuuid, gtest }:
stdenv.mkDerivation rec {
pname = "lib3mf";
version = "1.8.1";
src = fetchFromGitHub {
owner = "3MFConsortium";
repo = pname;
rev = "v${version}";
sha256 = "11wpk6n9ga2p57h1dcrp37w77mii0r7r6mlrgmykf7rvii1rzgqd";
};
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ libuuid ];
postPatch = ''
rmdir UnitTests/googletest
ln -s ${gtest.src} UnitTests/googletest
'';
meta = with stdenv.lib; {
description = "Reference implementation of the 3D Manufacturing Format file standard";
homepage = "https://3mf.io/";
license = licenses.bsd2;
maintainers = with maintainers; [ gebner ];
platforms = platforms.all;
};
}