blockbench-electron: 4.5.2 -> 4.8.1

This commit is contained in:
wackbyte 2023-07-09 20:38:46 -04:00
parent 35bec35018
commit 2bdd96af9b
No known key found for this signature in database
GPG key ID: 937F2AE5CCEFBF59

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_22 }: { lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_25 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "blockbench-electron"; pname = "blockbench-electron";
version = "4.5.2"; version = "4.8.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage"; url = "https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage";
sha256 = "sha256-uUgVBdYMCF31+L/FV4ADIpUdEAmnW59KfscQxUStPWM="; sha256 = "sha256-CE2wDOt1WBcYmPs4sEyZ3LYvKLequFZH0B3huMYHlwA=";
name = "${pname}-${version}.AppImage"; name = "${pname}-${version}.AppImage";
}; };
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
''; '';
postFixup = '' postFixup = ''
makeWrapper ${electron_22}/bin/electron $out/bin/${pname} \ makeWrapper ${electron_25}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar \ --add-flags $out/share/${pname}/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}"
''; '';