depot/third_party/nixpkgs/pkgs/applications/graphics/goxel/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

33 lines
861 B
Nix

{ lib, stdenv, fetchFromGitHub, scons, pkg-config, wrapGAppsHook3
, glfw3, gtk3, libpng }:
stdenv.mkDerivation (finalAttrs: {
pname = "goxel";
version = "0.15.1";
src = fetchFromGitHub {
owner = "guillaumechereau";
repo = "goxel";
rev = "v${finalAttrs.version}";
hash = "sha256-mNSkQisWL3wXb+IsClWFTMbpeiRC4xteePXNP+GkUnU=";
};
nativeBuildInputs = [ scons pkg-config wrapGAppsHook3 ];
buildInputs = [ glfw3 gtk3 libpng ];
dontUseSconsBuild = true;
dontUseSconsInstall = true;
makeFlags = [ "PREFIX=$(out)" ];
buildFlags = [ "release" ];
meta = with lib; {
description = "Open Source 3D voxel editor";
mainProgram = "goxel";
homepage = "https://guillaumechereau.github.io/goxel/";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ tilpner fgaz ];
};
})