diff options
author | Mohammad Kefah <missa18@ku.edu.tr> | 2022-10-19 23:26:29 +0300 |
---|---|---|
committer | Mohammad Kefah <missa18@ku.edu.tr> | 2022-10-19 23:26:29 +0300 |
commit | 2122fc67adcf7977aca7c60fbb2cd3313ceed1be (patch) | |
tree | f8b511cb6a4b268d071951203eab6e564be26b75 /pkgs/applications/networking/circumflex | |
parent | e04579e7cdce875453574a46123b73dfe6db046f (diff) |
circumflex: init at 2.6
Diffstat (limited to 'pkgs/applications/networking/circumflex')
-rw-r--r-- | pkgs/applications/networking/circumflex/default.nix | 29 |
1 files changed, 29 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..da6f224b8d9e3 --- /dev/null +++ b/pkgs/applications/networking/circumflex/default.nix @@ -0,0 +1,29 @@ +{ 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; + mainProgram = "clx"; + }; +} |