mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
73 lines
1.2 KiB
Nix
73 lines
1.2 KiB
Nix
|
{ 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";
|
||
|
version = "2.2.6";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "wimpysworld";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
sha256 = "sha256-gextBOWxJafwdWzkp89thhRgcy1XBTDh2VyseHQM1G0=";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|