ffado: prevent build tools from leaking into closure (#63393)

ffado: prevent build tools from leaking into closure
This commit is contained in:
Jan Tojnar 2019-06-18 11:39:38 +02:00 committed by GitHub
commit 8cef6ec5fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View file

@ -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";

View file

@ -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";