refactor: align package.nix with Nixpkgs
This commit is contained in:
parent
faccbae06a
commit
17f5932024
14
package.nix
14
package.nix
|
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue