mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-24 06:08:16 +03:00
Merge pull request #297758 from diogotcorreia/fetchnextcloudapp-hash
fetchNextcloudApp: support passing hash to fetchzip
This commit is contained in:
commit
b5e22438aa
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchzip, applyPatches, lib, ... }:
|
{ stdenv, fetchzip, applyPatches, lib, ... }:
|
||||||
{ url
|
{ url
|
||||||
, sha256
|
, hash ? ""
|
||||||
|
, sha256 ? ""
|
||||||
, appName ? null
|
, appName ? null
|
||||||
, appVersion ? null
|
, appVersion ? null
|
||||||
, license
|
, license
|
||||||
@ -11,7 +12,7 @@
|
|||||||
applyPatches ({
|
applyPatches ({
|
||||||
inherit patches;
|
inherit patches;
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
inherit url sha256;
|
inherit url hash sha256;
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
pushd $out &>/dev/null
|
pushd $out &>/dev/null
|
||||||
if [ ! -f ./appinfo/info.xml ]; then
|
if [ ! -f ./appinfo/info.xml ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user