nixpkgs/pkgs/applications/misc/hstr/default.nix
2017-10-31 16:27:23 +01:00

26 lines
699 B
Nix

{ stdenv, fetchurl, readline, ncurses }:
let
version = "1.23";
in
stdenv.mkDerivation rec {
name = "hstr-${version}";
src = fetchurl {
url = "https://github.com/dvorka/hstr/releases/download/${version}/hh-${version}-src.tgz";
sha256 = "1hnira256p7sdilx34mnkji7gi2jcl98zz4izqxsqmnzj8ghhzkv";
};
buildInputs = [ readline ncurses ];
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
};
}