From dd4ff7f3f9340227322d68d7426f1d7021b45439 Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Mon, 27 Nov 2023 15:40:55 -0700 Subject: [PATCH] feat: remove blockbench --- packages/blockbench/default.nix | 48 ------------------------- systems/x86_64-linux/aurora/default.nix | 1 - 2 files changed, 49 deletions(-) delete mode 100644 packages/blockbench/default.nix diff --git a/packages/blockbench/default.nix b/packages/blockbench/default.nix deleted file mode 100644 index d6f06af..0000000 --- a/packages/blockbench/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - appimageTools, - makeWrapper, - electron_25, -}: -stdenv.mkDerivation rec { - pname = "blockbench"; - version = "4.8.3"; - - src = fetchurl { - url = "https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage"; - sha256 = "sha256-zKl+XM7f5wFYSS4vGgjUUehzxLMGAmk/gP9FzBfjN6A="; - name = "${pname}-${version}.AppImage"; - }; - - appimageContents = appimageTools.extractType2 { - name = "${pname}-${version}"; - inherit src; - }; - - dontUnpack = true; - dontConfigure = true; - dontBuild = true; - - nativeBuildInputs = [makeWrapper]; - - installPhase = '' - runHook preInstall - mkdir -p $out/bin $out/share/${pname} $out/share/applications - cp -a ${appimageContents}/{locales,resources} $out/share/${pname} - cp -a ${appimageContents}/blockbench.desktop $out/share/applications/${pname}.desktop - cp -a ${appimageContents}/usr/share/icons $out/share - substituteInPlace $out/share/applications/${pname}.desktop \ - --replace 'Exec=AppRun' 'Exec=${pname}' - runHook postInstall - ''; - - postFixup = '' - makeWrapper ${electron_25}/bin/electron $out/bin/${pname} \ - --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" \ - --add-flags $out/share/${pname}/resources/app.asar \ - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [stdenv.cc.cc]}" - # hehe - ''; -} diff --git a/systems/x86_64-linux/aurora/default.nix b/systems/x86_64-linux/aurora/default.nix index 58aab42..593b382 100644 --- a/systems/x86_64-linux/aurora/default.nix +++ b/systems/x86_64-linux/aurora/default.nix @@ -13,7 +13,6 @@ services.ssh.enable = true; environment.systemPackages = with pkgs; [ - custom.blockbench custom.boscaceoil custom.mcman ];