@@ -0,0 +1,33 @@
1+{ stdenv, lib, fetchFromGitHub, scons, pkgconfig, wrapGAppsHook
2+, glfw3, gtk3, libpng12 }:
3+
4+stdenv.mkDerivation rec {
5+ name = "goxel-${version}";
6+ version = "0.7.2";
7+
8+ src = fetchFromGitHub {
9+ owner = "guillaumechereau";
10+ repo = "goxel";
11+ rev = "v${version}";
12+ sha256 = "1d6waj8zz9iq3ddbi9wbpcnh200ajjy9x53xrj5bij01pb8jwskv";
13+ };
14+
15+ nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
16+ buildInputs = [ glfw3 gtk3 libpng12 ];
17+
18+ buildPhase = ''
19+ make release
20+ '';
21+
22+ installPhase = ''
23+ install -D ./goxel $out/bin/goxel
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Open Source 3D voxel editor";
28+ homepage = https://guillaumechereau.github.io/goxel/;
29+ license = licenses.gpl3;
30+ platforms = platforms.linux;
31+ maintainers = with maintainers; [ tilpner ];
32+ };
33+}