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:
parent
402dfaf7ab
commit
15bac19cd2
@ -42,7 +42,7 @@ let
|
|||||||
installPhase =
|
installPhase =
|
||||||
let so =
|
let so =
|
||||||
if bass.so ? ${stdenv.system} then bass.so.${stdenv.system}
|
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 ''
|
in ''
|
||||||
mkdir -p $out/{lib,include}
|
mkdir -p $out/{lib,include}
|
||||||
install -m644 -t $out/lib/ ${so}
|
install -m644 -t $out/lib/ ${so}
|
||||||
@ -53,6 +53,7 @@ let
|
|||||||
description = "Shareware audio library";
|
description = "Shareware audio library";
|
||||||
homepage = https://www.un4seen.com/;
|
homepage = https://www.un4seen.com/;
|
||||||
license = licenses.unfreeRedistributable;
|
license = licenses.unfreeRedistributable;
|
||||||
|
platforms = builtins.attrNames bass.so;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user