mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-06 23:31:34 +00:00
fribidi: add pkgConfigModules metadata and corresponding test
This commit is contained in:
parent
61b9b25d42
commit
ae8b023ac9
|
@ -6,9 +6,10 @@
|
|||
, pkg-config
|
||||
, fixDarwinDylibNames
|
||||
, python3
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fribidi";
|
||||
version = "1.0.13";
|
||||
|
||||
|
@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# NOTE: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application.
|
||||
src = fetchurl {
|
||||
url = "https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz";
|
||||
url = with finalAttrs; "https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-f6FsgMgb1iL3sZjTE1baE5zDGKY/x3YSF69BMJA/VKI=";
|
||||
};
|
||||
|
||||
|
@ -32,10 +33,17 @@ stdenv.mkDerivation rec {
|
|||
doCheck = true;
|
||||
nativeCheckInputs = [ python3 ];
|
||||
|
||||
passthru.tests = {
|
||||
pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fribidi/fribidi";
|
||||
description = "GNU implementation of the Unicode Bidirectional Algorithm (bidi)";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.unix;
|
||||
pkgConfigModules = [ "fribidi" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue