refactor: align package.nix with Nixpkgs

This commit is contained in:
Martin Wimpress 2024-06-27 00:38:17 +01:00 committed by Martin Wimpress
parent faccbae06a
commit 17f5932024
1 changed files with 9 additions and 5 deletions

View File

@ -27,6 +27,7 @@
, zsync , zsync
, OVMF , OVMF
, OVMFFull , OVMFFull
, quickemu
}: }:
let let
runtimePaths = [ runtimePaths = [
@ -47,6 +48,8 @@ let
util-linux util-linux
xrandr xrandr
zsync zsync
OVMF
OVMFFull
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
glxinfo glxinfo
usbutils usbutils
@ -59,11 +62,9 @@ let
.* .*
'' (builtins.readFile ./quickemu); '' (builtins.readFile ./quickemu);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "quickemu"; pname = "quickemu";
version = builtins.concatStringsSep "" versionMatches; version = builtins.concatStringsSep "" versionMatches;
src = lib.cleanSource ./.; src = lib.cleanSource ./.;
postPatch = '' postPatch = ''
@ -94,10 +95,13 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { passthru.tests = testers.testVersion { package = quickemu; };
meta = {
description = "Quickly create and run optimised Windows, macOS and Linux virtual machines"; description = "Quickly create and run optimised Windows, macOS and Linux virtual machines";
homepage = "https://github.com/quickemu-project/quickemu"; homepage = "https://github.com/quickemu-project/quickemu";
license = licenses.mit; mainProgram = "quickemu";
maintainers = with maintainers; [ fedx-sudo flexiondotorg ]; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fedx-sudo flexiondotorg ];
}; };
} }