{ ... }: let pkgs = import {}; inherit (pkgs) stdenv autoPatchelfHook; in { MultiMC = stdenv.mkDerivation rec { pname = "MultiMC"; version = "develop"; src = builtins.fetchTarball "https://files.multimc.org/downloads/mmc-develop-lin64.tar.gz"; nativeBuildInputs = with pkgs; [ autoPatchelfHook qt5.wrapQtAppsHook ]; installPhase = '' cp -r . $out echo "#!/bin/sh $out/MultiMC -d ~/.multimc" > $out/bin/MultiMC-run chmod 555 $out/bin/MultiMC-run install -D ${./MultiMC.desktop} -t $out/share/applications ''; }; }