Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-23.11] quickgui: add quickemu to PATH #308364

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions pkgs/applications/virtualization/quickgui/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{ stdenv
{ stdenvNoCC
, lib
, fetchurl
, autoPatchelfHook
, dpkg
, wrapGAppsHook
, quickemu
, gnome
}:

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

Expand All @@ -18,31 +20,48 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoPatchelfHook
dpkg
wrapGAppsHook
];

buildInputs = [
wrapGAppsHook
quickemu
gnome.zenity
];

strictDeps = true;

unpackCmd = "dpkg-deb -x $curSrc source";

installPhase = ''
runHook preInstall

mv usr $out

runHook postInstall
'';

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

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";
};
}
Loading