nixpkgs/pkgs/by-name/qu/quickemu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

115 lines
2.5 KiB
Nix
Raw Normal View History

2024-06-02 22:42:02 +00:00
{
lib,
fetchFromGitHub,
stdenv,
makeWrapper,
cdrtools,
curl,
gawk,
2024-07-04 13:30:03 +00:00
mesa-demos,
2024-06-02 22:42:02 +00:00
gnugrep,
gnused,
jq,
pciutils,
procps,
python3,
qemu_full,
2024-06-02 22:42:02 +00:00
socat,
spice-gtk,
swtpm,
usbutils,
util-linux,
unzip,
xdg-user-dirs,
xrandr,
zsync,
OVMF,
OVMFFull,
testers,
installShellFiles,
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
}:
let
runtimePaths =
[
cdrtools
curl
gawk
gnugrep
gnused
jq
pciutils
procps
python3
qemu_full
socat
swtpm
util-linux
unzip
xrandr
zsync
]
++ lib.optionals stdenv.hostPlatform.isLinux [
2024-07-04 13:30:03 +00:00
mesa-demos
usbutils
xdg-user-dirs
];
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
in
2024-06-02 22:42:02 +00:00
stdenv.mkDerivation (finalAttrs: {
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
pname = "quickemu";
version = "4.9.6";
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
src = fetchFromGitHub {
owner = "quickemu-project";
repo = "quickemu";
rev = finalAttrs.version;
hash = "sha256-VaA39QNZNaomvSBMzJMjYN0KOTwWw2798KE8VnM+1so=";
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
};
2022-09-22 09:16:24 +00:00
postPatch = ''
sed -i \
-e '/OVMF_CODE_4M.secboot.fd/s|ovmfs=(|ovmfs=("${OVMFFull.firmware}","${OVMFFull.variables}" |' \
-e '/OVMF_CODE_4M.fd/s|ovmfs=(|ovmfs=("${OVMF.firmware}","${OVMF.variables}" |' \
2022-09-22 09:16:24 +00:00
-e '/cp "''${VARS_IN}" "''${VARS_OUT}"/a chmod +w "''${VARS_OUT}"' \
-e 's/Icon=.*qemu.svg/Icon=qemu/' \
-e 's,\[ -x "\$(command -v smbd)" \],true,' \
2022-09-22 09:16:24 +00:00
quickemu
'';
2024-06-02 22:42:02 +00:00
nativeBuildInputs = [
makeWrapper
installShellFiles
];
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
installPhase = ''
runHook preInstall
2023-05-12 09:32:32 +00:00
installManPage docs/quickget.1 docs/quickemu.1 docs/quickemu_conf.1
2024-05-09 23:06:02 +00:00
install -Dm755 -t "$out/bin" chunkcheck quickemu quickget quickreport windowskey
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
# spice-gtk needs to be put in suffix so that when virtualisation.spiceUSBRedirection
# is enabled, the wrapped spice-client-glib-usb-acl-helper is used
2024-05-09 23:06:02 +00:00
for f in chunkcheck quickget quickemu quickreport windowskey; do
wrapProgram $out/bin/$f \
--prefix PATH : "${lib.makeBinPath runtimePaths}" \
--suffix PATH : "${lib.makeBinPath [ spice-gtk ]}"
done
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
runHook postInstall
'';
passthru.tests = testers.testVersion { package = finalAttrs.finalPackage; };
2024-05-09 23:06:02 +00:00
meta = {
description = "Quickly create and run optimised Windows, macOS and Linux virtual machines";
homepage = "https://github.com/quickemu-project/quickemu";
changelog = "https://github.com/quickemu-project/quickemu/releases/tag/${finalAttrs.version}";
2024-05-09 23:06:02 +00:00
mainProgram = "quickemu";
license = lib.licenses.mit;
2024-06-02 22:42:02 +00:00
maintainers = with lib.maintainers; [
fedx-sudo
flexiondotorg
];
quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 Added quickemu to nixpkgs quickemu: init at 2.2.6 quickemu: init at 2.2.6 remove bad merge files quickemu: init at 2.2.6 quickemu: init at 2.2.6 quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. quickemu: init at 2.2.6 refactor default.nix for better readability/efficancy. Update pkgs/development/quickemu/default.nix Co-authored-by: Bruno Bigras <bigras.bruno@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> quickemu: init at 2.2.6 quickemu: init at 2.2.6 Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/development/quickemu/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quickemu: init at 2.2.6
2021-10-18 22:53:44 +00:00
};
2024-05-09 23:06:02 +00:00
})