2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook3
|
2024-04-21 15:54:59 +00:00
|
|
|
, glfw3, gtk3, libpng }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "goxel";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.15.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guillaumechereau";
|
|
|
|
repo = "goxel";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-mNSkQisWL3wXb+IsClWFTMbpeiRC4xteePXNP+GkUnU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ scons pkg-config wrapGAppsHook3 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ glfw3 gtk3 libpng ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dontUseSconsBuild = true;
|
|
|
|
dontUseSconsInstall = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildFlags = [ "release" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "goxel";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://guillaumechereau.github.io/goxel/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with maintainers; [ tilpner fgaz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|