python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / tinyobjloader / default.nix
blobd07a841c3c021455354a336f718575a778ef3521
1 { lib, stdenv
2 , fetchFromGitHub
3 , cmake
4 }:
6 stdenv.mkDerivation rec {
7   pname = "tinyobjloader";
8   version = "1.0.7";
10   src = fetchFromGitHub {
11     owner = "tinyobjloader";
12     repo = "tinyobjloader";
13     rev = "v${version}";
14     sha256 = "sha256-BNffbicnLTGK2GQ2/bB328LFU9fqHxrpAVj2hJaekWc=";
15   };
17   nativeBuildInputs = [ cmake ];
19   # https://github.com/tinyobjloader/tinyobjloader/issues/336
20   postPatch = ''
21     substituteInPlace tinyobjloader.pc.in \
22       --replace '$'{prefix}/@TINYOBJLOADER_LIBRARY_DIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
23       --replace '$'{prefix}/@TINYOBJLOADER_INCLUDE_DIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
24   '';
26   meta = with lib; {
27     homepage = "https://github.com/tinyobjloader/tinyobjloader";
28     description = "Tiny but powerful single file wavefront obj loader";
29     license = licenses.mit;
30     maintainers = [ maintainers.ivar ];
31     platforms = platforms.all;
32   };