Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105543 from IvarWithoutBones/tinyobjloader-init-1…
….0.6
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ stdenv | ||
, fetchFromGitHub | ||
, cmake | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "tinyobjloader"; | ||
version = "1.0.6"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tinyobjloader"; | ||
repo = "tinyobjloader"; | ||
rev = "v${version}"; | ||
sha256 = "162168995f4xch7hm3iy6m57r8iqkpzi5x9qh1gsghlxwdxxqbis"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = "https://github.com/tinyobjloader/tinyobjloader"; | ||
description = "Tiny but powerful single file wavefront obj loader"; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.ivar ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
21 changes: 21 additions & 0 deletions
21
pkgs/development/python-modules/tinyobjloader-py/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ lib, buildPythonPackage, pybind11, tinyobjloader }: | ||
|
||
buildPythonPackage rec { | ||
pname = "tinyobjloader-py"; | ||
inherit (tinyobjloader) version src; | ||
|
||
# Build needs headers from ${src}, setting sourceRoot or fetching from pypi won't work. | ||
preConfigure = '' | ||
cd python | ||
''; | ||
|
||
buildInputs = [ pybind11 ]; | ||
|
||
# No tests are included upstream | ||
doCheck = false; | ||
pythonImportsCheck = [ "tinyobjloader" ]; | ||
|
||
meta = with lib; tinyobjloader.meta // { | ||
description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters