fetchNextcloudApp: support passing hash to fetchzip

This commit is contained in:
Diogo Correia 2024-03-21 16:24:29 +00:00
parent 7872526e9c
commit 24e9d55af6
No known key found for this signature in database
GPG Key ID: 12B4F3AC9C065D08
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchzip, applyPatches, lib, ... }:
{ url
, sha256
, hash ? ""
, sha256 ? ""
, appName ? null
, appVersion ? null
, license
@ -11,7 +12,7 @@
applyPatches ({
inherit patches;
src = fetchzip {
inherit url sha256;
inherit url hash sha256;
postFetch = ''
pushd $out &>/dev/null
if [ ! -f ./appinfo/info.xml ]; then