streamlining build
This commit is contained in:
parent
0a6b5273ae
commit
8da070e785
5
MultiMC
5
MultiMC
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIR=$(dirname -- "$( readlink -f -- "$0"; )";)
|
||||
|
||||
$DIR/../MultiMC $@ -d ~/.multimc
|
21
default.nix
21
default.nix
@ -1,27 +1,22 @@
|
||||
{ ... }:
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
inherit (pkgs) stdenv fetchurl autoPatchelfHook;
|
||||
inherit (pkgs) stdenv autoPatchelfHook;
|
||||
in {
|
||||
MultiMC = stdenv.mkDerivation rec {
|
||||
pname = "MultiMC";
|
||||
version = "";
|
||||
version = "develop";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://files.multimc.org/downloads/mmc-develop-lin64.tar.gz";
|
||||
sha256 = "c70c9b8d152d33d2f64d91109939a2f21f9717cf0d16e316c796443273141e15";
|
||||
};
|
||||
src = builtins.fetchTarball "https://files.multimc.org/downloads/mmc-develop-lin64.tar.gz";
|
||||
|
||||
buildInputs = with pkgs; [ libsForQt5.qt5.qtbase stdenv.cc.cc.lib ];
|
||||
nativeBuildInputs = with pkgs; [ autoPatchelfHook qt5.wrapQtAppsHook ] ;
|
||||
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
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user