add blockbecnh
This commit is contained in:
31
nixpkgs/blockbench-5.nix
Normal file
31
nixpkgs/blockbench-5.nix
Normal 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 won’t 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -41,7 +41,6 @@ with pkgs; [
|
|||||||
yt-dlp
|
yt-dlp
|
||||||
stellarium
|
stellarium
|
||||||
blender
|
blender
|
||||||
blockbench
|
|
||||||
jetbrains.idea-ultimate
|
jetbrains.idea-ultimate
|
||||||
krita
|
krita
|
||||||
barrier
|
barrier
|
||||||
@@ -51,4 +50,5 @@ with pkgs; [
|
|||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
hugo
|
hugo
|
||||||
glow
|
glow
|
||||||
|
blockbench
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user