mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
fribidi: 1.0.16 -> 1.0.17, modernize, adopt (#567373)
This commit is contained in:
@@ -9,11 +9,18 @@
|
||||
fixDarwinDylibNames,
|
||||
python3,
|
||||
testers,
|
||||
|
||||
# for passthru.tests
|
||||
pango,
|
||||
libass,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fribidi";
|
||||
version = "1.0.16";
|
||||
version = "1.0.17";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -26,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
url =
|
||||
with finalAttrs;
|
||||
"https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-GxzeWyNdQEeekb4vDoijCeMhTIq0cOyKJ0TYKlqeoFw=";
|
||||
sha256 = "sha256-aUnc3ifUHOutH9dB/K/DbVWhAg0thy1KbrORTKq7raI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -40,8 +47,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
||||
|
||||
# necessary to compile helper which runs during build to generate tables
|
||||
# see gen.tab/meson.build for details
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
mesonFlags = lib.mapAttrsToList lib.mesonBool {
|
||||
tests = finalAttrs.finalPackage.doCheck;
|
||||
docs = true;
|
||||
bin = true;
|
||||
deprecated = true;
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [ python3 ];
|
||||
|
||||
@@ -49,14 +65,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
inherit pango libass;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/fribidi/fribidi";
|
||||
changelog = "https://github.com/fribidi/fribidi/releases/tag/v${finalAttrs.version}";
|
||||
description = "GNU implementation of the Unicode Bidirectional Algorithm (bidi)";
|
||||
mainProgram = "fribidi";
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = lib.platforms.unix;
|
||||
pkgConfigModules = [ "fribidi" ];
|
||||
maintainers = with lib.maintainers; [ tmarkus ];
|
||||
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "gnu" finalAttrs.version;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user