11 stdenv.mkDerivation (finalAttrs: {
16 url = "https://downloads.sourceforge.net/project/openctm/OpenCTM-${finalAttrs.version}/OpenCTM-${finalAttrs.version}-src.tar.bz2";
17 hash = "sha256-So0mCNlzZPfuxWt8Y3xWuTCK6YKGs+kNu3QTyQ6UPx0=";
27 nativeBuildInputs = [ pkg-config ];
36 substituteInPlace tools/tinyxml/Makefile.linux \
37 --replace-warn "-Wno-format" "-Wno-format -Wno-format-security"
38 substituteInPlace tools/Makefile.linux \
39 --replace-warn "-lglut" "-lglut -lGL -lGLU"
44 "INCDIR=$(dev)/include/"
46 "MAN1DIR=$(man)/share/man//man1"
49 makefile = if stdenv.isDarwin then "Makefile.macosx" else "Makefile.linux";
51 preInstall = "mkdir -p $bin/bin $dev/include $out/lib $man/share/man/man1";
54 description = "File format, software library and a tool set for compression of 3D triangle meshes";
55 homepage = "https://sourceforge.net/projects/openctm/";
56 license = licenses.zlib;
57 maintainers = with maintainers; [ nim65s ];