Merge pull request #301672 from viraptor/tangerine

tangerine: init at 2024-04-05
This commit is contained in:
Stanisław Pitucha 2024-04-08 14:37:10 +10:00 committed by GitHub
commit 5581753106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, ncurses
, SDL2
}:
stdenv.mkDerivation {
pname = "tangerine";
version = "unstable-2024-04-05";
src = fetchFromGitHub {
owner = "Aeva";
repo = "tangerine";
rev = "a628e95d181d396246214df5194ac6b18698d811";
hash = "sha256-vn4/eH5o0UhTNfN2UB4r0eKNn90PbH3UPfarHsnQPIk=";
};
patches = [
(fetchpatch {
name = "no-install-during-build.patch";
url = "https://github.com/Aeva/tangerine/pull/12/commits/2d7d1ae1e21e8fe52df2c4a33e947b2ff6b07812.patch";
hash = "sha256-zLAx5FOvtUsUZM/nUCFW8Z1Xe3+oV95Nv1s3GaNcV/c=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [ ncurses SDL2 ];
meta = with lib; {
description = "A system for creating 3D models procedurally from a set of Signed Distance Function (SDF) primitive shapes and combining operators";
homepage = "https://github.com/Aeva/tangerine";
license = licenses.asl20;
maintainers = [ maintainers.viraptor ];
broken = stdenv.isDarwin; # third_party/naive-surface-nets doesn't find std::execution
};
}