9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
36 lines
955 B
Nix
36 lines
955 B
Nix
{ stdenv, fetchurl, cmake, perl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libzip";
|
|
version = "1.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.nih.at/libzip/${pname}-${version}.tar.gz";
|
|
sha256 = "120xgf7cgjmz9d3yp10lks6lhkgxqb4skbmbiiwf46gx868qxsq6";
|
|
};
|
|
|
|
# Fix pkg-config file paths
|
|
postPatch = ''
|
|
sed -i CMakeLists.txt \
|
|
-e 's#\\''${exec_prefix}/''${CMAKE_INSTALL_LIBDIR}#''${CMAKE_INSTALL_FULL_LIBDIR}#' \
|
|
-e 's#\\''${prefix}/''${CMAKE_INSTALL_INCLUDEDIR}#''${CMAKE_INSTALL_FULL_INCLUDEDIR}#'
|
|
'';
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
preCheck = ''
|
|
# regress/runtest is a generated file
|
|
patchShebangs regress
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://www.nih.at/libzip";
|
|
description = "A C library for reading, creating and modifying zip archives";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|