diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-19 23:26:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 23:26:32 +0200 |
commit | 715648d2a16761e8e309f561a66cb9f6fb7d31e5 (patch) | |
tree | 6f7ab599039566dbe7bff2545a5b8a763debd370 /pkgs/applications | |
parent | 95dec46fcda0f2d7b8f025e8d5125fc9f6bf62f6 (diff) | |
parent | fba19d0290ca8a17fc595fbc4eb15d947a171931 (diff) |
Merge pull request #196149 from mktip/circumflex
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/circumflex/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/networking/circumflex/default.nix b/pkgs/applications/networking/circumflex/default.nix new file mode 100644 index 0000000000000..71fe5b97b8bf9 --- /dev/null +++ b/pkgs/applications/networking/circumflex/default.nix @@ -0,0 +1,30 @@ +{ lib, less, ncurses, buildGoModule, fetchFromGitHub, makeWrapper }: + +buildGoModule rec { + pname = "circumflex"; + version = "2.6"; + + src = fetchFromGitHub { + owner = "bensadeh"; + repo = "circumflex"; + rev = version; + hash = "sha256-pcY2PXiOazKAi8mAAbmftXDae01fcUw/u9JPOHQVclI="; + }; + + vendorHash = "sha256-rF1Hu4Pf9AF2MTx4GAPmzSn0M38uTxPS1bsAkO23SdI="; + + 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"; + }; +} |