codec2: add testers.testMetaPkgConfig

+7 -3
+7 -3
pkgs/by-name/co/codec2/package.nix
··· 1 1 { 2 2 lib, 3 + testers, 3 4 stdenv, 4 5 buildPackages, 5 6 fetchFromGitHub, ··· 8 9 lpcnetfreedv, 9 10 }: 10 11 11 - stdenv.mkDerivation rec { 12 + stdenv.mkDerivation (finalAttrs: { 12 13 pname = "codec2"; 13 14 version = "1.2.0"; 14 15 15 16 src = fetchFromGitHub { 16 17 owner = "drowe67"; 17 18 repo = "codec2"; 18 - rev = "${version}"; 19 + rev = finalAttrs.version; 19 20 hash = "sha256-69Mp4o3MgV98Fqfai4txv5jQw2WpoPuoWcwHsNAFPQM="; 20 21 }; 21 22 ··· 56 57 "-DLPCNET=ON" 57 58 ]; 58 59 60 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 61 + 59 62 meta = with lib; { 60 63 description = "Speech codec designed for communications quality speech at low data rates"; 61 64 homepage = "https://www.rowetel.com/codec2.html"; ··· 64 67 maintainers = with maintainers; [ markuskowa ]; 65 68 # generate_codebook only built for host platform 66 69 broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform; 70 + pkgConfigModules = [ "codec2" ]; 67 71 }; 68 - } 72 + })