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.
29 lines
757 B
Nix
29 lines
757 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libmongo-client-0.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "algernon";
|
|
repo = "libmongo-client";
|
|
rev = name;
|
|
sha256 = "1cjx06i3gd9zkyvwm2ysjrf0hkhr7bjg3c27s7n0y31j10igfjp0";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ ];
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
postPatch = ''
|
|
# Fix when uses glib in public headers
|
|
sed -i 's/Requires.private/Requires/g' src/libmongo-client.pc.in
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://algernon.github.io/libmongo-client/";
|
|
description = "An alternative C driver for MongoDB";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|