mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
libid3tag: move pkgconfig file into the nix-expression directory
[Bjørn Forsman: * use "mkdir -p" instead of "ensureDir" (deprecated) * place *.pc file in $out/lib/pkgconfig/ (instead of $out/share/pkgconfig/ which doesn't work) * prefix commit message with "libid3tag:" ]
This commit is contained in:
parent
9d3fbcd054
commit
97a1b91f1b
@ -14,24 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./debian-patches.patch ];
|
patches = [ ./debian-patches.patch ];
|
||||||
|
|
||||||
postInstall = let pkgconfigFile = writeText "id3tag.pc" ''
|
postInstall = ''
|
||||||
prefix=@out@
|
mkdir -p $out/lib/pkgconfig
|
||||||
exec_prefix=''${prefix}
|
cp ${./id3tag.pc} $out/lib/pkgconfig/id3tag.pc
|
||||||
libdir=''${exec_prefix}/lib
|
substituteInPlace $out/lib/pkgconfig/id3tag.pc \
|
||||||
includedir=''${exec_prefix}/include
|
--subst-var-by out $out \
|
||||||
|
--subst-var-by version "${version}"
|
||||||
Name: libid3tag
|
|
||||||
Description: ID3 tag manipulation library
|
|
||||||
Version: ${version}
|
|
||||||
|
|
||||||
Libs: -L''${libdir} -lid3tag
|
|
||||||
Cflags: -I''${includedir}
|
|
||||||
'';
|
|
||||||
in ''
|
|
||||||
ensureDir $out/share/pkgconfig
|
|
||||||
cp ${pkgconfigFile} $out/share/pkgconfig/id3tag.pc
|
|
||||||
substituteInPlace $out/share/pkgconfig/id3tag.pc \
|
|
||||||
--subst-var-by out $out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
11
pkgs/development/libraries/libid3tag/id3tag.pc
Normal file
11
pkgs/development/libraries/libid3tag/id3tag.pc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=@out@
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${exec_prefix}/include
|
||||||
|
|
||||||
|
Name: libid3tag
|
||||||
|
Description: ID3 tag manipulation library
|
||||||
|
Version: @version@
|
||||||
|
|
||||||
|
Libs: -L${libdir} -lid3tag
|
||||||
|
Cflags: -I${includedir}
|
Loading…
Reference in New Issue
Block a user