python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / graphics / goxel / default.nix
blob325d1bcf083dd1104afa3d78d81c8d6334f34daf
1 { lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook
2 , glfw3, gtk3, libpng12 }:
4 stdenv.mkDerivation rec {
5   pname = "goxel";
6   version = "0.10.8";
8   src = fetchFromGitHub {
9     owner = "guillaumechereau";
10     repo = "goxel";
11     rev = "v${version}";
12     sha256 = "sha256-M9H9SV8xmU7Jw5rEdV0gfloIEBvWmWSuH+BCrowpf2M=";
13   };
15   patches = [ ./disable-imgui_ini.patch ];
17   nativeBuildInputs = [ scons pkg-config wrapGAppsHook ];
18   buildInputs = [ glfw3 gtk3 libpng12 ];
19   NIX_LDFLAGS = "-lpthread";
21   buildPhase = ''
22     make release
23   '';
25   installPhase = ''
26     install -D ./goxel $out/bin/goxel
27   '';
29   meta = with lib; {
30     description = "Open Source 3D voxel editor";
31     homepage = "https://guillaumechereau.github.io/goxel/";
32     license = licenses.gpl3;
33     platforms = platforms.linux;
34     maintainers = with maintainers; [ tilpner ];
35   };