diff --git a/pkgs/build-support/fetchnextcloudapp/default.nix b/pkgs/build-support/fetchnextcloudapp/default.nix index a7a3066ffab3..29a3f727a082 100644 --- a/pkgs/build-support/fetchnextcloudapp/default.nix +++ b/pkgs/build-support/fetchnextcloudapp/default.nix @@ -1,10 +1,20 @@ -{ stdenv, fetchzip, applyPatches, ... }: +{ stdenv, fetchzip, applyPatches, lib, ... }: { url , sha256 +, licenses , patches ? [ ] , name ? null , version ? null +, description ? null +, homepage ? null }: +let + # TODO: do something better + licenseMap = { + "agpl" = lib.licenses.agpl3Only; + "apache" = lib.licenses.asl20; + }; +in if name != null || version != null then throw '' `pkgs.fetchNextcloudApp` has been changed to use `fetchzip`. To update, please @@ -23,5 +33,11 @@ else applyPatches { fi popd &>/dev/null ''; + meta = + ({ + licenses = map (licenseString: licenseMap.${licenseString}) licenses; + longDescription = description; + inherit homepage; + }); }; }