MultiMC-Nixos/default.nix

28 lines
911 B
Nix
Raw Normal View History

2024-06-21 18:31:23 +00:00
{ ... }:
let
pkgs = import <nixpkgs> {};
inherit (pkgs) stdenv fetchurl autoPatchelfHook;
in {
MultiMC = stdenv.mkDerivation rec {
pname = "MultiMC";
version = "";
src = fetchurl {
url = "https://files.multimc.org/downloads/mmc-develop-lin64.tar.gz";
sha256 = "c70c9b8d152d33d2f64d91109939a2f21f9717cf0d16e316c796443273141e15";
};
buildInputs = with pkgs; [ libsForQt5.qt5.qtbase stdenv.cc.cc.lib ];
nativeBuildInputs = with pkgs; [ autoPatchelfHook qt5.wrapQtAppsHook ] ;
installPhase = ''
cp -r . $out
#install -vD MultiMC -t $out/MultiMC
#cp -r bin $out/MultiMC
install -v ${./MultiMC} $out/bin/MultiMC-run
#install -D ${./MultiMC} -t $out/bin/MultiMC-run
#install -D ${./MultiMC.desktop} -t $out/share/applications
'';
};
}