libid3tag: Split into multiple outputs
This commit is contained in:
parent
ed8e485c5d
commit
8ac360ed95
@ -1,24 +1,33 @@
|
|||||||
{stdenv, fetchurl, writeText, zlib, gperf}:
|
{stdenv, fetchurl, writeText, zlib, gperf}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.15.1b";
|
|
||||||
|
|
||||||
name = "libid3tag-${version}";
|
name = "libid3tag-${version}";
|
||||||
|
version = "0.15.1b";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
|
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
|
||||||
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
|
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
setOutputFlags = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib gperf ];
|
propagatedBuildInputs = [ zlib gperf ];
|
||||||
|
|
||||||
patches = [ ./debian-patches.patch ];
|
patches = [ ./debian-patches.patch ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
configureFlagsArray+=(
|
||||||
|
--includedir=$dev/include
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib/pkgconfig
|
mkdir -p $dev/lib/pkgconfig
|
||||||
cp ${./id3tag.pc} $out/lib/pkgconfig/id3tag.pc
|
cp ${./id3tag.pc} $dev/lib/pkgconfig/id3tag.pc
|
||||||
substituteInPlace $out/lib/pkgconfig/id3tag.pc \
|
substituteInPlace $dev/lib/pkgconfig/id3tag.pc \
|
||||||
--subst-var-by out $out \
|
--subst-var-by out $out \
|
||||||
|
--subst-var-by dev $dev \
|
||||||
--subst-var-by version "${version}"
|
--subst-var-by version "${version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
prefix=@out@
|
prefix=@out@
|
||||||
exec_prefix=${prefix}
|
exec_prefix=${prefix}
|
||||||
libdir=${exec_prefix}/lib
|
libdir=${exec_prefix}/lib
|
||||||
includedir=${exec_prefix}/include
|
includedir=@dev@/include
|
||||||
|
|
||||||
Name: libid3tag
|
Name: libid3tag
|
||||||
Description: ID3 tag manipulation library
|
Description: ID3 tag manipulation library
|
||||||
|
Loading…
x
Reference in New Issue
Block a user