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

9 lines
227 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}";
})