nixpkgs/pkgs/applications/networking/circumflex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
798 B
Nix
Raw Normal View History

2022-10-19 20:26:29 +00:00
{ lib, less, ncurses, buildGoModule, fetchFromGitHub, makeWrapper }:
buildGoModule rec {
pname = "circumflex";
2023-06-28 13:22:45 +00:00
version = "3.1.3";
2022-10-19 20:26:29 +00:00
src = fetchFromGitHub {
owner = "bensadeh";
repo = "circumflex";
rev = version;
2023-06-28 13:22:45 +00:00
hash = "sha256-KY3Jf0Y6ZAQciwImv7Oz0nQ5eEwm7XwOlAx3ijqDF0k=";
2022-10-19 20:26:29 +00:00
};
2023-06-22 02:03:40 +00:00
vendorHash = "sha256-ms7TvCXQdkrlWp1pGj3ja+ACodt7z6sP3E373xHxA34=";
2022-10-19 20:26:29 +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;
2022-10-19 20:27:04 +00:00
maintainers = with maintainers; [ mktip ];
2022-10-19 20:26:29 +00:00
mainProgram = "clx";
};
}