nixpkgs-suyu/pkgs/tools/misc/pspg/default.nix
R. RyanTM 3b4ee14a83 pspg: 1.1.0 -> 1.1.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pspg/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/g5s0d7h461nd55hnzp5k6v74dlfcz6dh-pspg-1.1.1/bin/pspg --help’ got 0 exit code
- ran ‘/nix/store/g5s0d7h461nd55hnzp5k6v74dlfcz6dh-pspg-1.1.1/bin/pspg -V’ and found version 1.1.1
- ran ‘/nix/store/g5s0d7h461nd55hnzp5k6v74dlfcz6dh-pspg-1.1.1/bin/pspg --version’ and found version 1.1.1
- found 1.1.1 with grep in /nix/store/g5s0d7h461nd55hnzp5k6v74dlfcz6dh-pspg-1.1.1
- directory tree listing: https://gist.github.com/ba99487fab26f86a314d4a727749a490
2018-05-06 22:49:59 -07:00

28 lines
710 B
Nix

{ stdenv, fetchFromGitHub, gnugrep, ncurses, pkgconfig, readline }:
stdenv.mkDerivation rec {
name = "pspg-${version}";
version = "1.1.1";
src = fetchFromGitHub {
owner = "okbob";
repo = "pspg";
rev = "${version}";
sha256 = "19jiixanyghasd2awkxx7c224fz01d9v0c4qxn4msvkny39m3gz9";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnugrep ncurses readline ];
preBuild = ''
makeFlags="PREFIX=$out PKG_CONFIG=${pkgconfig}/bin/pkg-config"
'';
meta = with stdenv.lib; {
homepage = https://github.com/okbob/pspg;
description = "Postgres Pager";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = [ maintainers.jlesquembre ];
};
}