From 17f5932024421309187e6d1e959a46e03a85a883 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 27 Jun 2024 00:38:17 +0100 Subject: [PATCH] refactor: align package.nix with Nixpkgs --- package.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/package.nix b/package.nix index 7a9d043..dff9c3f 100644 --- a/package.nix +++ b/package.nix @@ -27,6 +27,7 @@ , zsync , OVMF , OVMFFull +, quickemu }: let runtimePaths = [ @@ -47,6 +48,8 @@ let util-linux xrandr zsync + OVMF + OVMFFull ] ++ lib.optionals stdenv.isLinux [ glxinfo usbutils @@ -59,11 +62,9 @@ let .* '' (builtins.readFile ./quickemu); in - stdenv.mkDerivation rec { pname = "quickemu"; version = builtins.concatStringsSep "" versionMatches; - src = lib.cleanSource ./.; postPatch = '' @@ -94,10 +95,13 @@ stdenv.mkDerivation rec { runHook postInstall ''; - meta = with lib; { + passthru.tests = testers.testVersion { package = quickemu; }; + + meta = { description = "Quickly create and run optimised Windows, macOS and Linux virtual machines"; homepage = "https://github.com/quickemu-project/quickemu"; - license = licenses.mit; - maintainers = with maintainers; [ fedx-sudo flexiondotorg ]; + mainProgram = "quickemu"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fedx-sudo flexiondotorg ]; }; }