2019-07-05 04:43:29 -07:00
|
|
|
{ stdenv, fetchFromGitHub, readline, ncurses
|
|
|
|
, autoreconfHook, pkgconfig, gettext }:
|
2015-03-07 05:50:14 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "hstr";
|
2019-12-23 08:56:26 -08:00
|
|
|
version = "2.2";
|
2015-03-07 05:50:14 -08:00
|
|
|
|
2019-07-05 04:43:29 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dvorka";
|
|
|
|
repo = "hstr";
|
|
|
|
rev = version;
|
2019-12-23 08:56:26 -08:00
|
|
|
sha256 = "07fkilqlkpygvf9kvxyvl58g3lfq0bwwdp3wczy4hk8qlbhmgihn";
|
2015-03-07 05:50:14 -08:00
|
|
|
};
|
|
|
|
|
2019-07-05 04:43:29 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ readline ncurses gettext ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
autoreconf -fvi
|
|
|
|
./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
mv src/hstr $out/bin/
|
|
|
|
'';
|
2015-03-07 05:50:14 -08:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/dvorka/hstr";
|
2015-03-07 05:50:14 -08:00
|
|
|
description = "Shell history suggest box - easily view, navigate, search and use your command history";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2019-02-20 10:52:48 -08:00
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
2015-03-07 05:50:14 -08:00
|
|
|
platforms = with stdenv.lib.platforms; linux; # Cannot test others
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|