2019-07-05 12:43:29 +01:00
|
|
|
{ stdenv, fetchFromGitHub, readline, ncurses
|
|
|
|
, autoreconfHook, pkgconfig, gettext }:
|
2015-03-07 13:50:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hstr";
|
2019-07-05 12:43:29 +01:00
|
|
|
version = "2.0";
|
2015-03-07 13:50:14 +00:00
|
|
|
|
2019-07-05 12:43:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dvorka";
|
|
|
|
repo = "hstr";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1y9vsfbg07gbic0daqy569d9pb9i1d07fym3q7a0a99hbng85s20";
|
2015-03-07 13:50:14 +00:00
|
|
|
};
|
|
|
|
|
2019-07-05 12:43:29 +01: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 13:50:14 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/dvorka/hstr;
|
2015-03-07 13:50:14 +00:00
|
|
|
description = "Shell history suggest box - easily view, navigate, search and use your command history";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2019-02-20 18:52:48 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
2015-03-07 13:50:14 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux; # Cannot test others
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|