2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, removeReferencesTo
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pkgconf";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.0.3";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://distfiles.dereferenced.org/pkgconf/pkgconf-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-yr3zxHRSmFT3zM6Fc8WsaK00p+YhA3U1y8OYH2sjg2w=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" "doc" ];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
# Debian has outputs like these too
|
|
|
|
# (https://packages.debian.org/source/bullseye/pkgconf), so it is safe to
|
|
|
|
# remove those references
|
2020-06-18 07:06:33 +00:00
|
|
|
postFixup = ''
|
2022-04-15 01:41:22 +00:00
|
|
|
remove-references-to \
|
|
|
|
-t "${placeholder "out"}" \
|
|
|
|
"${placeholder "lib"}"/lib/*
|
2020-06-18 07:06:33 +00:00
|
|
|
remove-references-to \
|
|
|
|
-t "${placeholder "dev"}" \
|
|
|
|
"${placeholder "lib"}"/lib/* \
|
|
|
|
"${placeholder "out"}"/bin/*
|
|
|
|
''
|
|
|
|
# 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"
|
2023-05-24 13:37:59 +00:00
|
|
|
# outputs or something.
|
2020-06-18 07:06:33 +00:00
|
|
|
+ ''
|
|
|
|
mv ${placeholder "dev"}/share ${placeholder "out"}
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://github.com/pkgconf/pkgconf";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Package compiler and linker metadata toolkit";
|
2022-04-15 01:41:22 +00:00
|
|
|
longDescription = ''
|
|
|
|
pkgconf is a program which helps to configure compiler and linker flags
|
|
|
|
for development libraries. It is similar to pkg-config from
|
|
|
|
freedesktop.org.
|
|
|
|
|
|
|
|
libpkgconf is a library which provides access to most of pkgconf's
|
|
|
|
functionality, to allow other tooling such as compilers and IDEs to
|
|
|
|
discover and use libraries configured by pkgconf.
|
|
|
|
'';
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/pkgconf/pkgconf/blob/pkgconf-${finalAttrs.version}/NEWS";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
mainProgram = "pkgconf";
|
|
|
|
maintainers = with lib.maintainers; [ zaninime AndersonTorres ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|