2022-10-21 18:38:19 +00:00
|
|
|
{ lib, less, ncurses, buildGoModule, fetchFromGitHub, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "circumflex";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.8.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bensadeh";
|
|
|
|
repo = "circumflex";
|
|
|
|
rev = version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-hFhK1/ck37lfZJ2wpk1MGCfYEANhh8qzTb8m1t7EoBo=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
vendorHash = "sha256-rwqY6illp5+h/oHOnVg6QfZ6tRFJOamwqJxQx/zlpyI=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clx \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ less ncurses ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command line tool for browsing Hacker News in your terminal";
|
|
|
|
homepage = "https://github.com/bensadeh/circumflex";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ mktip ];
|
|
|
|
mainProgram = "clx";
|
|
|
|
};
|
|
|
|
}
|