nixos-config/lib/fetchers/fetch-ugee-driver/default.nix

16 lines
237 B
Nix

{ fetchzip, lib }:
{
fileId,
pid,
ext ? "gz",
...
}@args:
let
args' = lib.removeAttrs args [ "fileId" "pid" "ext" ];
in
fetchzip (args' // {
url = "https://www.ugee.com/download/file/id/${fileId}/pid/${pid}/ext/${ext}";
})