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";
|
2021-08-10 14:31:46 +00:00
|
|
|
version = "0.10.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guillaumechereau";
|
|
|
|
repo = "goxel";
|
|
|
|
rev = "v${version}";
|
2021-08-10 14:31:46 +00:00
|
|
|
sha256 = "sha256-M9H9SV8xmU7Jw5rEdV0gfloIEBvWmWSuH+BCrowpf2M=";
|
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 ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|