mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
16 lines
237 B
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}";
|
||
|
})
|