aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix33
1 files changed, 30 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix b/nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix
index e3729994375..6fca02ad788 100644
--- a/nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix
+++ b/nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix
@@ -1,14 +1,41 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, removeReferencesTo }:
stdenv.mkDerivation rec {
pname = "pkgconf";
- version = "1.7.0";
+ version = "1.7.3";
+
+ nativeBuildInputs = [ removeReferencesTo ];
+
+ outputs = [ "out" "lib" "dev" "man" "doc" ];
+
+ enableParallelBuilding = true;
src = fetchurl {
url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
- sha256 = "0sb1a2lgiqaninv5s3zq09ilrkpsamcl68dyhqyz7yi9vsgb0vhy";
+ sha256 = "1h7rf5cch0cbxp8nmjkkf272zrz2jgpqpr8a58ww75pn3jjswimq";
};
+ # Debian has outputs like these too:
+ # https://packages.debian.org/source/buster/pkgconf, so take it this
+ # reference removing is safe.
+ postFixup = ''
+ remove-references-to \
+ -t "${placeholder "dev"}" \
+ "${placeholder "lib"}"/lib/* \
+ "${placeholder "out"}"/bin/*
+ remove-references-to \
+ -t "${placeholder "out"}" \
+ "${placeholder "lib"}"/lib/*
+ ''
+ # Move back share/aclocal. Yes, this normally goes in the dev output for good
+ # reason, but in this case the dev output is for the `libpkgconf` library,
+ # while the aclocal stuff is for the tool. The tool is already for use during
+ # development, so there is no reason to have separate "dev-bin" and "dev-lib"
+ # outputs or someting.
+ + ''
+ mv ${placeholder "dev"}/share ${placeholder "out"}
+ '';
+
meta = with stdenv.lib; {
description = "Package compiler and linker metadata toolkit";
homepage = "https://git.dereferenced.org/pkgconf/pkgconf";