depot/third_party/nixpkgs/pkgs/applications/networking/circumflex/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

30 lines
796 B
Nix

{ lib, less, ncurses, buildGoModule, fetchFromGitHub, makeWrapper }:
buildGoModule rec {
pname = "circumflex";
version = "3.2";
src = fetchFromGitHub {
owner = "bensadeh";
repo = "circumflex";
rev = version;
hash = "sha256-3cu5Y9Z20CbFN+4/2LLM3pcXofuc8oztoZVPhDzFLas=";
};
vendorHash = "sha256-w9WDbNvnaRgZ/rpI450C7AA244AXRE8u960xZnAiXn4=";
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";
};
}