diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-08-29 11:04:59 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-08-29 11:04:59 +0200 |
commit | 15bac19cd2189815d718f62efbd83e466766ebef (patch) | |
tree | 172bf060b1b22f13076163f6e8e3b13f14ec8cee /pkgs | |
parent | 402dfaf7aba3aa0628d2b358b21696ee8304a0ff (diff) |
libbass: evaluation nitpicks
- specify meta.platforms to avoid trying to evaluate when it shouldn't - use `throw` instead of `abort`, as that's the convention for similar cases
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/audio/libbass/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/audio/libbass/default.nix b/pkgs/development/libraries/audio/libbass/default.nix index dedfa5ceb3526..4c2918c922da4 100644 --- a/pkgs/development/libraries/audio/libbass/default.nix +++ b/pkgs/development/libraries/audio/libbass/default.nix @@ -42,7 +42,7 @@ let installPhase = let so = if bass.so ? ${stdenv.system} then bass.so.${stdenv.system} - else abort "${name} not packaged for ${stdenv.system} (yet)."; + else throw "${name} not packaged for ${stdenv.system} (yet)."; in '' mkdir -p $out/{lib,include} install -m644 -t $out/lib/ ${so} @@ -53,6 +53,7 @@ let description = "Shareware audio library"; homepage = https://www.un4seen.com/; license = licenses.unfreeRedistributable; + platforms = builtins.attrNames bass.so; }; }; |