dart: add some assertions
This commit is contained in:
parent
d87aba56a8
commit
577645d09f
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
x86_64 = "x64";
|
||||
i686 = "ia32";
|
||||
aarch64 = "arm64";
|
||||
# Make sure that if the user overrides version parameter they're
|
||||
# also need to override sources, to avoid mistakes
|
||||
version = "2.10.5";
|
||||
in
|
||||
{
|
||||
"${version}-x86_64-darwin" = fetchurl {
|
||||
|
@ -30,6 +33,9 @@
|
|||
}
|
||||
}:
|
||||
|
||||
assert version != null && version != "";
|
||||
assert sources != null && (builtins.isAttrs sources);
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "dart";
|
||||
inherit version;
|
||||
|
|
Loading…
Reference in a new issue