Skip to content

Commit

Permalink
quickgui: add quickemu to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
heyimnova committed Nov 18, 2023
1 parent d4cd00c commit 3616472
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions pkgs/applications/virtualization/quickgui/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ stdenv
{ stdenvNoCC
, lib
, fetchurl
, autoPatchelfHook
, dpkg
, wrapGAppsHook
, quickemu
}:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "quickgui";
version = "1.2.8";

Expand All @@ -18,9 +19,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoPatchelfHook
dpkg
];

buildInputs = [
wrapGAppsHook
];

Expand All @@ -30,19 +28,32 @@ stdenv.mkDerivation rec {
runHook preInstall
mv usr $out
runHook postInstall
'';

preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : ${lib.makeBinPath [ quickemu ]}
)
'';

postFixup = ''
substituteInPlace $out/share/applications/quickgui.desktop \
--replace "/usr" $out
runHook postInstall
# quickgui PR 88
echo "Categories=System;" >> $out/share/applications/quickgui.desktop
'';

meta = {
meta = with lib; {
description = "A Flutter frontend for quickemu";
homepage = "https://github.com/quickemu-project/quickgui";
changelog = "https://github.com/quickemu-project/quickgui/releases/tag/v${version}";
maintainers = [ lib.maintainers.heyimnova ];
platforms = lib.platforms.linux;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
license = licenses.mit;
maintainers = with maintainers; [ heyimnova ];
platforms = [ "x86_64-linux" ];
sourceProvenance = [ sourceTypes.binaryNativeCode ];
mainProgram = "quickgui";
};
}

0 comments on commit 3616472

Please sign in to comment.