2024-04-26 20:24:03 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook3
|
2024-03-11 21:09:38 +00:00
|
|
|
, glfw3, gtk3, libpng }:
|
2018-01-15 05:20:03 +00:00
|
|
|
|
2024-02-19 15:05:10 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "goxel";
|
2024-08-03 08:58:40 +00:00
|
|
|
version = "0.15.1";
|
2018-01-15 05:20:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guillaumechereau";
|
|
|
|
repo = "goxel";
|
2024-02-19 15:05:10 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-08-03 08:58:40 +00:00
|
|
|
hash = "sha256-mNSkQisWL3wXb+IsClWFTMbpeiRC4xteePXNP+GkUnU=";
|
2018-01-15 05:20:03 +00:00
|
|
|
};
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ scons pkg-config wrapGAppsHook3 ];
|
2024-03-11 21:09:38 +00:00
|
|
|
buildInputs = [ glfw3 gtk3 libpng ];
|
2022-12-23 16:57:29 +00:00
|
|
|
|
2024-07-08 15:21:42 +00:00
|
|
|
dontUseSconsBuild = true;
|
|
|
|
dontUseSconsInstall = true;
|
2018-01-15 05:20:03 +00:00
|
|
|
|
2024-07-08 15:21:42 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2023-12-01 21:17:20 +00:00
|
|
|
|
2024-07-08 15:21:42 +00:00
|
|
|
buildFlags = [ "release" ];
|
2018-01-15 05:20:03 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-15 05:20:03 +00:00
|
|
|
description = "Open Source 3D voxel editor";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "goxel";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://guillaumechereau.github.io/goxel/";
|
2018-01-15 05:20:03 +00:00
|
|
|
license = licenses.gpl3;
|
2019-04-25 20:48:35 +00:00
|
|
|
platforms = platforms.linux;
|
2023-04-02 12:26:27 +00:00
|
|
|
maintainers = with maintainers; [ tilpner fgaz ];
|
2018-01-15 05:20:03 +00:00
|
|
|
};
|
2024-02-19 15:05:10 +00:00
|
|
|
})
|