MultiMC-Nixos/default.nix
2024-06-21 20:38:44 +01:00

23 lines
654 B
Nix

{ ... }:
let
pkgs = import <nixpkgs> {};
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
'';
};
}