2021-10-18 23:53:44 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, makeWrapper
|
|
|
|
, qemu
|
|
|
|
, gnugrep
|
|
|
|
, lsb-release
|
|
|
|
, jq
|
|
|
|
, procps
|
|
|
|
, python3
|
|
|
|
, cdrtools
|
|
|
|
, usbutils
|
|
|
|
, util-linux
|
|
|
|
, spicy
|
|
|
|
, swtpm
|
|
|
|
, wget
|
|
|
|
, xdg-user-dirs
|
|
|
|
, xrandr
|
|
|
|
, zsync
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
runtimePaths = [
|
|
|
|
qemu
|
|
|
|
gnugrep
|
|
|
|
jq
|
|
|
|
lsb-release
|
|
|
|
procps
|
|
|
|
python3
|
|
|
|
cdrtools
|
|
|
|
usbutils
|
|
|
|
util-linux
|
|
|
|
spicy
|
|
|
|
swtpm
|
|
|
|
wget
|
|
|
|
xdg-user-dirs
|
|
|
|
xrandr
|
|
|
|
zsync
|
|
|
|
];
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quickemu";
|
2021-10-27 15:35:57 +01:00
|
|
|
version = "2.2.7";
|
2021-10-18 23:53:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wimpysworld";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-27 15:35:57 +01:00
|
|
|
sha256 = "sha256-TNG1pCePsi12QQafhayhj+V5EXq+v7qmaW5v5X8ER6s=";
|
2021-10-18 23:53:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t "$out/bin" quickemu quickget macrecovery
|
|
|
|
|
|
|
|
for f in quickget macrecovery quickemu; do
|
|
|
|
wrapProgram $out/bin/$f --prefix PATH : "${lib.makeBinPath runtimePaths}"
|
|
|
|
done
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Quickly create and run optimised Windows, macOS and Linux desktop virtual machines";
|
|
|
|
homepage = "https://github.com/wimpysworld/quickemu";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fedx-sudo ];
|
|
|
|
};
|
|
|
|
}
|