mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
libass: replace mkFlag with lib.enableFeature
This commit is contained in:
parent
54ed2aa8c1
commit
9d1b0d95e8
@ -8,10 +8,6 @@
|
||||
|
||||
assert fontconfigSupport -> fontconfig != null;
|
||||
|
||||
let
|
||||
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
|
||||
in
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libass";
|
||||
@ -23,9 +19,9 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
(mkFlag fontconfigSupport "fontconfig")
|
||||
(mkFlag rasterizerSupport "rasterizer")
|
||||
(mkFlag largeTilesSupport "large-tiles")
|
||||
(enableFeature fontconfigSupport "fontconfig")
|
||||
(enableFeature rasterizerSupport "rasterizer")
|
||||
(enableFeature largeTilesSupport "large-tiles")
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config yasm ];
|
||||
|
Loading…
Reference in New Issue
Block a user