add blockbecnh

This commit is contained in:
2025-10-22 09:03:18 +09:00
parent 51764389c5
commit 1927c2ca09
2 changed files with 32 additions and 1 deletions

31
nixpkgs/blockbench-5.nix Normal file
View File

@@ -0,0 +1,31 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
stdenv.mkDerivation rec {
pname = "blockbench";
version = "5.0.2";
src = fetchurl {
url =
"https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage";
sha256 = "e4e1edc6df725c54a675e201f3366c4245f36b6f558bf9b68b0f66f00e360b58";
};
nativeBuildInputs = [ makeWrapper ];
unpackPhase = "true"; # AppImage, we wont unpack fully
installPhase = ''
mkdir -p $out/bin
cp ${src} $out/bin/blockbench
chmod +x $out/bin/blockbench
wrapProgram $out/bin/blockbench \
--prefix PATH : "${pkgs.nodejs}/bin" \
--set BLOCKBENCH_APPIMAGE "$out/bin/blockbench"
'';
meta = with lib; {
description = "Blockbench 3D model editor (low-poly / Minecraft style)";
homepage = "https://blockbench.net/";
license = licenses.gpl3;
};
}

View File

@@ -41,7 +41,6 @@ with pkgs; [
yt-dlp
stellarium
blender
blockbench
jetbrains.idea-ultimate
krita
barrier
@@ -51,4 +50,5 @@ with pkgs; [
texlive.combined.scheme-full
hugo
glow
blockbench
]