nixpkgs/pkgs/development/tools/misc/pkgconf/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2020-05-21 16:03:57 +01:00
{ stdenv, fetchurl, removeReferencesTo }:
2018-11-19 12:31:56 +00:00
stdenv.mkDerivation rec {
pname = "pkgconf";
2020-05-26 16:11:22 +01:00
version = "1.7.0";
2018-11-19 12:31:56 +00:00
2020-05-21 16:03:57 +01:00
nativeBuildInputs = [ removeReferencesTo ];
outputs = [ "out" "lib" "dev" "man" "doc" ];
enableParallelBuilding = true;
2018-11-20 08:52:13 +00:00
src = fetchurl {
url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
2020-05-26 16:11:22 +01:00
sha256 = "0sb1a2lgiqaninv5s3zq09ilrkpsamcl68dyhqyz7yi9vsgb0vhy";
2018-11-19 12:31:56 +00:00
};
2020-05-21 16:03:57 +01: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"}
'';
2018-11-19 12:56:51 +00:00
meta = with stdenv.lib; {
2018-11-19 12:54:25 +00:00
description = "Package compiler and linker metadata toolkit";
homepage = "https://git.dereferenced.org/pkgconf/pkgconf";
2018-11-19 12:54:25 +00:00
platforms = platforms.all;
license = licenses.isc;
2018-11-19 12:56:51 +00:00
maintainers = with maintainers; [ zaninime ];
2018-11-19 12:54:25 +00:00
};
2018-11-19 12:31:56 +00:00
}