My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/applications/misc/hstr/default.nix

37 lines
903 B

{ stdenv, fetchFromGitHub, readline, ncurses
, autoreconfHook, pkgconfig, gettext }:
stdenv.mkDerivation rec {
pname = "hstr";
5 years ago
version = "2.2";
src = fetchFromGitHub {
owner = "dvorka";
repo = "hstr";
rev = version;
5 years ago
sha256 = "07fkilqlkpygvf9kvxyvl58g3lfq0bwwdp3wczy4hk8qlbhmgihn";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ readline ncurses gettext ];
configurePhase = ''
autoreconf -fvi
./configure
'';
installPhase = ''
mkdir -p $out/bin/
mv src/hstr $out/bin/
'';
meta = {
homepage = https://github.com/dvorka/hstr;
description = "Shell history suggest box - easily view, navigate, search and use your command history";
license = stdenv.lib.licenses.asl20;
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
platforms = with stdenv.lib.platforms; linux; # Cannot test others
};
}