nixpkgs/pkgs/tools/misc/pspg/default.nix

27 lines
677 B
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, readline, postgresql }:
2018-04-08 07:24:34 +02:00
stdenv.mkDerivation rec {
pname = "pspg";
2021-02-21 04:15:28 +01:00
version = "4.2.1";
2018-04-08 07:24:34 +02:00
src = fetchFromGitHub {
owner = "okbob";
repo = pname;
2019-09-09 01:38:31 +02:00
rev = version;
2021-02-21 04:15:28 +01:00
sha256 = "sha256-r6qD7KyuBj67c+nhaRLHP5B46JV8VP9MKCloqYLua+Q=";
2018-04-08 07:24:34 +02:00
};
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ pkg-config ];
2020-01-21 10:20:00 +01:00
buildInputs = [ gnugrep ncurses readline postgresql ];
2018-04-08 07:24:34 +02:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
2018-04-08 07:24:34 +02:00
meta = with lib; {
homepage = "https://github.com/okbob/pspg";
2018-04-08 07:24:34 +02:00
description = "Postgres Pager";
license = licenses.bsd2;
2020-01-21 10:20:00 +01:00
platforms = platforms.unix;
2018-04-08 07:24:34 +02:00
maintainers = [ maintainers.jlesquembre ];
};
}