8 stdenv.mkDerivation (finalAttrs: {
13 url = "https://distfiles.dereferenced.org/pkgconf/pkgconf-${finalAttrs.version}.tar.xz";
14 hash = "sha256-OpCArFHQNhXnwZEKCiqN8IQkiStfE7BiiiBNP8zg6os=";
17 outputs = [ "out" "lib" "dev" "man" "doc" ];
19 nativeBuildInputs = [ removeReferencesTo ];
21 enableParallelBuilding = true;
23 # Debian has outputs like these too
24 # (https://packages.debian.org/source/bullseye/pkgconf), so it is safe to
25 # remove those references
27 remove-references-to \
28 -t "${placeholder "out"}" \
29 "${placeholder "lib"}"/lib/*
30 remove-references-to \
31 -t "${placeholder "dev"}" \
32 "${placeholder "lib"}"/lib/* \
33 "${placeholder "out"}"/bin/*
35 # Move back share/aclocal. Yes, this normally goes in the dev output for good
36 # reason, but in this case the dev output is for the `libpkgconf` library,
37 # while the aclocal stuff is for the tool. The tool is already for use during
38 # development, so there is no reason to have separate "dev-bin" and "dev-lib"
39 # outputs or something.
41 mv ${placeholder "dev"}/share ${placeholder "out"}
44 passthru.updateScript = gitUpdater {
45 url = "https://gitea.treehouse.systems/ariadne/pkgconf";
46 rev-prefix = "pkgconf-";
50 homepage = "https://gitea.treehouse.systems/ariadne/pkgconf";
51 description = "Package compiler and linker metadata toolkit";
53 pkgconf is a program which helps to configure compiler and linker flags
54 for development libraries. It is similar to pkg-config from
57 libpkgconf is a library which provides access to most of pkgconf's
58 functionality, to allow other tooling such as compilers and IDEs to
59 discover and use libraries configured by pkgconf.
61 changelog = "https://gitea.treehouse.systems/ariadne/pkgconf/src/tag/pkgconf-${finalAttrs.version}/NEWS";
62 license = lib.licenses.isc;
63 mainProgram = "pkgconf";
64 maintainers = with lib.maintainers; [ zaninime AndersonTorres ];
65 platforms = lib.platforms.all;