mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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.mkDerivation rec {
|
||||
name = "libxml++-${maj_ver}.${min_ver}";
|
||||
maj_ver = "3.0";
|
||||
min_ver = "1";
|
||||
pname = "libxml++";
|
||||
version = "3.0.1";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
outputs = [ "out" "dev" "doc" "devdoc" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl ];
|
||||
|
||||
|
@ -18,6 +17,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
propagatedBuildInputs = [ libxml2 ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $dev/lib/pkgconfig/libxml++-3.0.pc \
|
||||
--replace 'docdir=''${datarootdir}' "docdir=$doc/share"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://libxmlplusplus.sourceforge.net/;
|
||||
description = "C++ wrapper for the libxml2 XML parser library, version 3";
|
||||
|
|
|
@ -53,6 +53,11 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
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; {
|
||||
homepage = http://www.ffado.org;
|
||||
description = "FireWire audio drivers";
|
||||
|
|
Loading…
Reference in a new issue