nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 47 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 ncurses, 8 SDL2, 9 libGL, 10 libX11, 11}: 12 13stdenv.mkDerivation { 14 pname = "tangerine"; 15 version = "0-unstable-2024-04-05"; 16 17 src = fetchFromGitHub { 18 owner = "Aeva"; 19 repo = "tangerine"; 20 rev = "a628e95d181d396246214df5194ac6b18698d811"; 21 hash = "sha256-vn4/eH5o0UhTNfN2UB4r0eKNn90PbH3UPfarHsnQPIk="; 22 }; 23 24 patches = [ 25 (fetchpatch { 26 name = "no-install-during-build.patch"; 27 url = "https://github.com/Aeva/tangerine/pull/12/commits/2d7d1ae1e21e8fe52df2c4a33e947b2ff6b07812.patch"; 28 hash = "sha256-zLAx5FOvtUsUZM/nUCFW8Z1Xe3+oV95Nv1s3GaNcV/c="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ cmake ]; 33 buildInputs = [ 34 ncurses 35 SDL2 36 libGL 37 libX11 38 ]; 39 40 meta = with lib; { 41 description = "System for creating 3D models procedurally from a set of Signed Distance Function (SDF) primitive shapes and combining operators"; 42 homepage = "https://github.com/Aeva/tangerine"; 43 license = licenses.asl20; 44 maintainers = [ maintainers.viraptor ]; 45 broken = stdenv.hostPlatform.isDarwin; # third_party/naive-surface-nets doesn't find std::execution 46 }; 47}