Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 49 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ fetchurl, fetchzip, applyPatches, lib, ...}:{ url, hash ? "", sha256 ? "", appName ? null, appVersion ? null, license, patches ? [ ], description ? null, homepage ? null, maintainers ? [ ], teams ? [ ], unpack ? false, # whether to use fetchzip rather than fetchurl}:applyPatches ( { inherit patches; src = (if unpack then fetchzip else fetchurl) { inherit url hash sha256; meta = { license = lib.licenses.${license}; longDescription = description; inherit homepage maintainers teams; } // lib.optionalAttrs (description != null) { longDescription = description; } // lib.optionalAttrs (homepage != null) { inherit homepage; }; }; prePatch = '' if [ ! -f ./appinfo/info.xml ]; then echo "appinfo/info.xml doesn't exist in $out, aborting!" exit 1 fi ''; } // lib.optionalAttrs (appName != null && appVersion != null) { name = "nextcloud-app-${appName}-${appVersion}"; })