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
This commit is contained in:
Vladimír Čunát 2017-08-29 11:04:59 +02:00
parent 402dfaf7ab
commit 15bac19cd2
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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;
};
};