Merge pull request #205697 from ckiee/blockbench-20221212

This commit is contained in:
Sandro 2023-01-02 21:58:35 +01:00 committed by GitHub
commit c51092ad75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_16 }:
{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_22 }:
stdenv.mkDerivation rec {
pname = "blockbench-electron";
version = "4.1.1";
version = "4.5.2";
src = fetchurl {
url = "https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage";
sha256 = "0mqdkjhmylrjjfrm05jv1967qqka5263fgcn9qzax08gcq93s18f";
sha256 = "sha256-uUgVBdYMCF31+L/FV4ADIpUdEAmnW59KfscQxUStPWM=";
name = "${pname}-${version}.AppImage";
};
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
makeWrapper ${electron_16}/bin/electron $out/bin/${pname} \
makeWrapper ${electron_22}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}"
'';
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
description = "A boxy 3D model editor powered by Electron";
homepage = "https://blockbench.net/";
license = licenses.gpl3Only;
maintainers = [ maintainers.ckie ];
maintainers = with maintainers; [ ckie ];
platforms = [ "x86_64-linux" ];
};
}