mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
mcaselector: add missing wrapGAppsHook (#280536)
* mcaselector: add wrapGAppsHook * mcaselector: don't wrap executable twice * mcaselector: correctly escape bash variable --------- Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
parent
8e141b8da1
commit
f965023df8
@ -2,6 +2,7 @@
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, wrapGAppsHook
|
||||
, jre
|
||||
}:
|
||||
|
||||
@ -17,7 +18,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
|
||||
nativeBuildInputs = [ jre makeWrapper ];
|
||||
nativeBuildInputs = [ jre makeWrapper wrapGAppsHook ];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
@ -25,7 +28,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
mkdir -p $out/{bin,lib/mcaselector}
|
||||
cp $src $out/lib/mcaselector/mcaselector.jar
|
||||
makeWrapper ${jre}/bin/java $out/bin/mcaselector \
|
||||
--add-flags "-jar $out/lib/mcaselector/mcaselector.jar"
|
||||
--add-flags "-jar $out/lib/mcaselector/mcaselector.jar" \
|
||||
''${gappsWrapperArgs[@]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user