2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, removeReferencesTo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pkgconf";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.7.3";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" "doc" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "1h7rf5cch0cbxp8nmjkkf272zrz2jgpqpr8a58ww75pn3jjswimq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
# 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"}
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Package compiler and linker metadata toolkit";
|
|
|
|
homepage = "https://git.dereferenced.org/pkgconf/pkgconf";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ zaninime ];
|
|
|
|
};
|
|
|
|
}
|