ffado: prevent build tools from leaking into closure (#63393)
ffado: prevent build tools from leaking into closure
This commit is contained in:
commit
8cef6ec5fe
@ -1,16 +1,15 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libxml2, glibmm, perl }:
|
{ stdenv, fetchurl, pkgconfig, libxml2, glibmm, perl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libxml++-${maj_ver}.${min_ver}";
|
pname = "libxml++";
|
||||||
maj_ver = "3.0";
|
version = "3.0.1";
|
||||||
min_ver = "1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/libxml++/${maj_ver}/${name}.tar.xz";
|
url = "mirror://gnome/sources/libxml++/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r";
|
sha256 = "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "devdoc" ];
|
outputs = [ "out" "dev" "doc" "devdoc" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig perl ];
|
nativeBuildInputs = [ pkgconfig perl ];
|
||||||
|
|
||||||
@ -18,6 +17,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ libxml2 ];
|
propagatedBuildInputs = [ libxml2 ];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace $dev/lib/pkgconfig/libxml++-3.0.pc \
|
||||||
|
--replace 'docdir=''${datarootdir}' "docdir=$doc/share"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://libxmlplusplus.sourceforge.net/;
|
homepage = http://libxmlplusplus.sourceforge.net/;
|
||||||
description = "C++ wrapper for the libxml2 XML parser library, version 3";
|
description = "C++ wrapper for the libxml2 XML parser library, version 3";
|
||||||
|
@ -53,6 +53,11 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# prevent build tools from leaking into closure
|
||||||
|
echo 'See `nix-store --query --tree ${placeholder "out"}`.' > $out/lib/libffado/static_info.txt
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.ffado.org;
|
homepage = http://www.ffado.org;
|
||||||
description = "FireWire audio drivers";
|
description = "FireWire audio drivers";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user