ci: fix GHA's rebuild-xxx: 5001+ labels (#360754)
[NixPkgs.git] / pkgs / by-name / ta / tangerine / package.nix
blob1ec2d6b362b982390a8c9ffb32b90dd3631c8151
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 , ncurses
7 , SDL2
8 }:
10 stdenv.mkDerivation {
11   pname = "tangerine";
12   version = "unstable-2024-04-05";
14   src = fetchFromGitHub {
15     owner = "Aeva";
16     repo = "tangerine";
17     rev = "a628e95d181d396246214df5194ac6b18698d811";
18     hash = "sha256-vn4/eH5o0UhTNfN2UB4r0eKNn90PbH3UPfarHsnQPIk=";
19   };
21   patches = [
22     (fetchpatch {
23       name = "no-install-during-build.patch";
24       url = "https://github.com/Aeva/tangerine/pull/12/commits/2d7d1ae1e21e8fe52df2c4a33e947b2ff6b07812.patch";
25       hash = "sha256-zLAx5FOvtUsUZM/nUCFW8Z1Xe3+oV95Nv1s3GaNcV/c=";
26     })
27   ];
29   nativeBuildInputs = [ cmake ];
30   buildInputs = [ ncurses SDL2 ];
32   meta = with lib; {
33     description = "System for creating 3D models procedurally from a set of Signed Distance Function (SDF) primitive shapes and combining operators";
34     homepage = "https://github.com/Aeva/tangerine";
35     license = licenses.asl20;
36     maintainers = [ maintainers.viraptor ];
37     broken = stdenv.hostPlatform.isDarwin; # third_party/naive-surface-nets doesn't find std::execution
38   };