lol
1{ lib, stdenv, fetchFromGitHub, readline, ncurses
2, autoreconfHook, pkg-config, gettext }:
3
4stdenv.mkDerivation rec {
5 pname = "hstr";
6 version = "3.1";
7
8 src = fetchFromGitHub {
9 owner = "dvorka";
10 repo = "hstr";
11 rev = version;
12 hash = "sha256-OuLy1aiEwUJDGy3+UXYF1Vx1nNXic46WIZEM1xrIPfA=";
13 };
14
15 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 buildInputs = [ readline ncurses gettext ];
17
18 configureFlags = [ "--prefix=$(out)" ];
19
20 meta = {
21 homepage = "https://github.com/dvorka/hstr";
22 description = "Shell history suggest box - easily view, navigate, search and use your command history";
23 license = lib.licenses.asl20;
24 maintainers = [ lib.maintainers.matthiasbeyer ];
25 platforms = with lib.platforms; linux ++ darwin;
26 };
27
28}