2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, glfw3, gtk3, libpng12 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "goxel";
|
2020-12-09 12:39:15 +00:00
|
|
|
version = "0.10.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guillaumechereau";
|
|
|
|
repo = "goxel";
|
|
|
|
rev = "v${version}";
|
2020-12-09 12:39:15 +00:00
|
|
|
sha256 = "1v6m6nhl1if8ik5bmblhq46bip6y2qz18a04s8a9awb4yh9ls039";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./disable-imgui_ini.patch ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ scons pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glfw3 gtk3 libpng12 ];
|
|
|
|
NIX_LDFLAGS = "-lpthread";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make release
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D ./goxel $out/bin/goxel
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open Source 3D voxel editor";
|
|
|
|
homepage = "https://guillaumechereau.github.io/goxel/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ tilpner ];
|
|
|
|
};
|
|
|
|
}
|