2021-01-16 19:51:22 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, readline, postgresql }:
|
2018-04-07 22:24:34 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "pspg";
|
2021-03-12 06:08:51 -08:00
|
|
|
version = "4.3.1";
|
2018-04-07 22:24:34 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
2019-10-23 07:51:14 -07:00
|
|
|
repo = pname;
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2021-03-12 06:08:51 -08:00
|
|
|
sha256 = "sha256-1udmtstmTmoW45tvDSVQPoMymw5YRKMls1CmWnqIaNE=";
|
2018-04-07 22:24:34 -07:00
|
|
|
};
|
|
|
|
|
2021-01-16 19:51:22 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-01-21 01:20:00 -08:00
|
|
|
buildInputs = [ gnugrep ncurses readline postgresql ];
|
2018-04-07 22:24:34 -07:00
|
|
|
|
2019-10-23 07:51:14 -07:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2018-04-07 22:24:34 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2019-10-23 07:51:14 -07:00
|
|
|
homepage = "https://github.com/okbob/pspg";
|
2018-04-07 22:24:34 -07:00
|
|
|
description = "Postgres Pager";
|
|
|
|
license = licenses.bsd2;
|
2020-01-21 01:20:00 -08:00
|
|
|
platforms = platforms.unix;
|
2018-04-07 22:24:34 -07:00
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|