codec2: fix paths in pkg-config file

+18
+13
pkgs/by-name/co/codec2/fix-pkg-config.patch
···
··· 1 + diff --git a/codec2.pc.in b/codec2.pc.in 2 + index ecca704..94fca12 100644 3 + --- a/codec2.pc.in 4 + +++ b/codec2.pc.in 5 + @@ -1,6 +1,5 @@ 6 + -prefix=@CMAKE_INSTALL_PREFIX@ 7 + -libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ 8 + -includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/codec2 9 + +libdir=@CMAKE_INSTALL_LIBDIR@ 10 + +includedir=@CMAKE_INSTALL_INCLUDEDIR@/codec2 11 + 12 + Name: codec2 13 + Description: A speech codec for 2400 bit/s and below
+5
pkgs/by-name/co/codec2/package.nix
··· 20 hash = "sha256-69Mp4o3MgV98Fqfai4txv5jQw2WpoPuoWcwHsNAFPQM="; 21 }; 22 23 nativeBuildInputs = [ 24 cmake 25 buildPackages.stdenv.cc # needs to build a C program to run at build time
··· 20 hash = "sha256-69Mp4o3MgV98Fqfai4txv5jQw2WpoPuoWcwHsNAFPQM="; 21 }; 22 23 + patches = [ 24 + # Fix nix-store path dupliucations 25 + ./fix-pkg-config.patch 26 + ]; 27 + 28 nativeBuildInputs = [ 29 cmake 30 buildPackages.stdenv.cc # needs to build a C program to run at build time