libass: replace mkFlag with lib.enableFeature
This commit is contained in:
parent
54ed2aa8c1
commit
9d1b0d95e8
1 changed files with 3 additions and 7 deletions
|
@ -8,10 +8,6 @@
|
||||||
|
|
||||||
assert fontconfigSupport -> fontconfig != null;
|
assert fontconfigSupport -> fontconfig != null;
|
||||||
|
|
||||||
let
|
|
||||||
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
|
|
||||||
in
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libass";
|
pname = "libass";
|
||||||
|
@ -23,9 +19,9 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(mkFlag fontconfigSupport "fontconfig")
|
(enableFeature fontconfigSupport "fontconfig")
|
||||||
(mkFlag rasterizerSupport "rasterizer")
|
(enableFeature rasterizerSupport "rasterizer")
|
||||||
(mkFlag largeTilesSupport "large-tiles")
|
(enableFeature largeTilesSupport "large-tiles")
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config yasm ];
|
nativeBuildInputs = [ pkg-config yasm ];
|
||||||
|
|
Loading…
Reference in a new issue