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
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
inherit (pkgs) stdenv fetchurl autoPatchelfHook;
|
inherit (pkgs) stdenv autoPatchelfHook;
|
||||||
in {
|
in {
|
||||||
MultiMC = stdenv.mkDerivation rec {
|
MultiMC = stdenv.mkDerivation rec {
|
||||||
pname = "MultiMC";
|
pname = "MultiMC";
|
||||||
version = "";
|
version = "develop";
|
||||||
|
|
||||||
src = fetchurl {
|
src = builtins.fetchTarball "https://files.multimc.org/downloads/mmc-develop-lin64.tar.gz";
|
||||||
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 ];
|
||||||
nativeBuildInputs = with pkgs; [ autoPatchelfHook qt5.wrapQtAppsHook ] ;
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r . $out
|
cp -r . $out
|
||||||
#install -vD MultiMC -t $out/MultiMC
|
echo "#!/bin/sh
|
||||||
#cp -r bin $out/MultiMC
|
$out/MultiMC -d ~/.multimc" > $out/bin/MultiMC-run
|
||||||
install -v ${./MultiMC} $out/bin/MultiMC-run
|
chmod 555 $out/bin/MultiMC-run
|
||||||
#install -D ${./MultiMC} -t $out/bin/MultiMC-run
|
install -D ${./MultiMC.desktop} -t $out/share/applications
|
||||||
#install -D ${./MultiMC.desktop} -t $out/share/applications
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user