win-pvdrivers: migrate to pkgs/by-name, format with nixfmt-rfc-style

This commit is contained in:
Anthony ROUSSEL 2024-09-17 21:18:43 +02:00
parent 2b2c6eb3fc
commit b85b6425ff
2 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,8 @@
{ lib, stdenvNoCC, fetchurl }:
{
lib,
stdenvNoCC,
fetchurl,
}:
let
# Upstream versioned download links are broken
@ -44,13 +48,15 @@ stdenvNoCC.mkDerivation {
pname = "win-pvdrivers";
version = "unstable-2023-08-17";
srcs = map ({hash, url}: fetchurl {
inherit hash url;
# Wait & retry up to 3 times as archive.org can closes connection
# when an HTTP client makes too many requests
curlOpts = "--retry 3 --retry-delay 5";
}) files;
srcs = map (
{ hash, url }:
fetchurl {
inherit hash url;
# Wait & retry up to 3 times as archive.org can closes connection
# when an HTTP client makes too many requests
curlOpts = "--retry 3 --retry-delay 5";
}
) files;
unpackPhase = ''
runHook preUnpack

View File

@ -34135,7 +34135,6 @@ with pkgs;
xkbmon = callPackage ../applications/misc/xkbmon { };
win-spice = callPackage ../applications/virtualization/driver/win-spice { };
win-pvdrivers = callPackage ../applications/virtualization/driver/win-pvdrivers { };
xfig = callPackage ../applications/graphics/xfig { };