codec2: add testers.testMetaPkgConfig

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