goxel: 0.14.0 -> 0.15.0
https://github.com/guillaumechereau/goxel/releases/tag/v0.15.0 Diff: https://github.com/guillaumechereau/goxel/compare/v0.14.0...v0.15.0
This commit is contained in:
parent
51acb42165
commit
6524e59bb1
@ -3,33 +3,24 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "goxel";
|
||||
version = "0.14.0";
|
||||
version = "0.15.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "guillaumechereau";
|
||||
repo = "goxel";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ueA0YW2n/DXd9AytDzfPtvtXbvuUm4VDwcdvHWObKxc=";
|
||||
hash = "sha256-bJnIZwTmvHNHXYq3zsMwu0EORtX2o9lLi6LFNrolwe4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ scons pkg-config wrapGAppsHook3 ];
|
||||
buildInputs = [ glfw3 gtk3 libpng ];
|
||||
|
||||
buildPhase = ''
|
||||
make release
|
||||
'';
|
||||
dontUseSconsBuild = true;
|
||||
dontUseSconsInstall = true;
|
||||
|
||||
installPhase = ''
|
||||
install -D ./goxel $out/bin/goxel
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
for res in $(ls data/icons | sed -e 's/icon//g' -e 's/.png//g'); do
|
||||
install -Dm444 data/icons/icon$res.png $out/share/icons/hicolor/''${res}x''${res}/apps/goxel.png
|
||||
done
|
||||
|
||||
install -Dm444 snap/gui/goxel.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/goxel.desktop \
|
||||
--replace 'Icon=''${SNAP}/icon.png' 'Icon=goxel'
|
||||
'';
|
||||
buildFlags = [ "release" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open Source 3D voxel editor";
|
||||
|
Loading…
Reference in New Issue
Block a user