Merge pull request #118283 from vcunat/p/fetchurl-typecheck
This commit is contained in:
commit
9bbfb26854
|
@ -104,7 +104,9 @@ let
|
||||||
if urls != [] && url == "" then
|
if urls != [] && url == "" then
|
||||||
(if lib.isList urls then urls
|
(if lib.isList urls then urls
|
||||||
else throw "`urls` is not a list")
|
else throw "`urls` is not a list")
|
||||||
else if urls == [] && url != "" then [url]
|
else if urls == [] && url != "" then
|
||||||
|
(if lib.isString url then [url]
|
||||||
|
else throw "`url` is not a string")
|
||||||
else throw "fetchurl requires either `url` or `urls` to be set";
|
else throw "fetchurl requires either `url` or `urls` to be set";
|
||||||
|
|
||||||
hash_ =
|
hash_ =
|
||||||
|
|
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||||
# fix "unescaped left brace" errors when using intltool in some cases
|
# fix "unescaped left brace" errors when using intltool in some cases
|
||||||
patches = [(fetchpatch {
|
patches = [(fetchpatch {
|
||||||
name = "perl5.26-regex-fixes.patch";
|
name = "perl5.26-regex-fixes.patch";
|
||||||
url = [
|
urls = [
|
||||||
"https://sources.debian.org/data/main/i/intltool/0.51.0-5/debian/patches/perl5.26-regex-fixes.patch"
|
"https://sources.debian.org/data/main/i/intltool/0.51.0-5/debian/patches/perl5.26-regex-fixes.patch"
|
||||||
"https://src.fedoraproject.org/rpms/intltool/raw/d8d2ef29fb122a42a6b6678eb1ec97ae56902af2/f/intltool-perl5.26-regex-fixes.patch"
|
"https://src.fedoraproject.org/rpms/intltool/raw/d8d2ef29fb122a42a6b6678eb1ec97ae56902af2/f/intltool-perl5.26-regex-fixes.patch"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue