1 { lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook
2 , glfw3, gtk3, libpng }:
4 stdenv.mkDerivation (finalAttrs: {
8 src = fetchFromGitHub {
9 owner = "guillaumechereau";
11 rev = "v${finalAttrs.version}";
12 hash = "sha256-ueA0YW2n/DXd9AytDzfPtvtXbvuUm4VDwcdvHWObKxc=";
15 nativeBuildInputs = [ scons pkg-config wrapGAppsHook ];
16 buildInputs = [ glfw3 gtk3 libpng ];
23 install -D ./goxel $out/bin/goxel
25 for res in $(ls data/icons | sed -e 's/icon//g' -e 's/.png//g'); do
26 install -Dm444 data/icons/icon$res.png $out/share/icons/hicolor/''${res}x''${res}/apps/goxel.png
29 install -Dm444 snap/gui/goxel.desktop -t $out/share/applications
30 substituteInPlace $out/share/applications/goxel.desktop \
31 --replace 'Icon=''${SNAP}/icon.png' 'Icon=goxel'
35 description = "Open Source 3D voxel editor";
36 mainProgram = "goxel";
37 homepage = "https://guillaumechereau.github.io/goxel/";
38 license = licenses.gpl3;
39 platforms = platforms.linux;
40 maintainers = with maintainers; [ tilpner fgaz ];