2022-10-21 18:38:19 +00:00
|
|
|
{ lib, less, ncurses, buildGoModule, fetchFromGitHub, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "circumflex";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.8";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bensadeh";
|
|
|
|
repo = "circumflex";
|
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-knN+T/dmIwHLqT3MJBjQhGlSeAu0lE2ZOv6tLqkcwS0=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = "sha256-Xwek2xlvdGO6C/T0a96RGuMcX7jCbvntEYBf10tvmAo=";
|
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";
|
|
|
|
};
|
|
|
|
}
|