mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
9 lines
227 B
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}";
|
|
})
|