71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
|
{
|
||
|
fetchFromGitHub,
|
||
|
makeDesktopItem,
|
||
|
copyDesktopItems,
|
||
|
lib,
|
||
|
flutter,
|
||
|
quickemu,
|
||
|
zenity,
|
||
|
}:
|
||
|
flutter.buildFlutterApplication rec {
|
||
|
pname = "quickgui";
|
||
|
version = "1.2.10";
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "quickemu-project";
|
||
|
repo = "quickgui";
|
||
|
rev = version;
|
||
|
hash = "sha256-M2Qy66RqsjXg7ZpHwaXCN8qXRIsisnIyaENx3KqmUfQ=";
|
||
|
};
|
||
|
|
||
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||
|
|
||
|
gitHashes = {
|
||
|
window_size = "sha256-XelNtp7tpZ91QCEcvewVphNUtgQX7xrp5QP0oFo6DgM=";
|
||
|
};
|
||
|
|
||
|
extraWrapProgramArgs = "--prefix PATH : ${
|
||
|
lib.makeBinPath [
|
||
|
quickemu
|
||
|
zenity
|
||
|
]
|
||
|
}";
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
copyDesktopItems
|
||
|
];
|
||
|
|
||
|
postFixup = ''
|
||
|
for SIZE in 16 32 48 64 128 256 512; do
|
||
|
mkdir -p $out/share/icons/hicolor/$SIZEx$SIZE/apps/
|
||
|
cp -av assets/resources/quickgui_$SIZE.png $out/share/icons/hicolor/$SIZEx$SIZE/apps/quickgui.png
|
||
|
done
|
||
|
'';
|
||
|
|
||
|
desktopItems = [
|
||
|
(makeDesktopItem {
|
||
|
name = "quickgui";
|
||
|
exec = "quickgui";
|
||
|
icon = "quickgui";
|
||
|
desktopName = "Quickgui";
|
||
|
comment = "An elegant virtual machine manager for the desktop";
|
||
|
categories = [
|
||
|
"Development"
|
||
|
"System"
|
||
|
];
|
||
|
})
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Elegant virtual machine manager for the desktop";
|
||
|
homepage = "https://github.com/quickemu-project/quickgui";
|
||
|
changelog = "https://github.com/quickemu-project/quickgui/releases/";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [
|
||
|
flexiondotorg
|
||
|
heyimnova
|
||
|
];
|
||
|
platforms = [ "x86_64-linux" ];
|
||
|
mainProgram = "quickgui";
|
||
|
};
|
||
|
}
|