mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
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.
30 lines
920 B
Nix
30 lines
920 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, postgresql }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tsearch-extras";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zulip";
|
|
repo = "tsearch_extras";
|
|
rev = "84e78f00931c4ef261d98197d6b5d94fc141f742"; # no release tag?
|
|
sha256 = "18j0saqblg3jhrz38splk173xjwdf32c67ymm18m8n5y94h8d2ba";
|
|
};
|
|
|
|
nativenativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ postgresql ];
|
|
|
|
installPhase = ''
|
|
install -D tsearch_extras.so -t $out/lib/
|
|
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Provides a few PostgreSQL functions for a lower-level data full text search";
|
|
homepage = "https://github.com/zulip/tsearch_extras/";
|
|
license = licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
};
|
|
}
|