From c05ac20fac0d1ef80126ea3445c412679ed1074b Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 15 Feb 2023 15:00:38 +0100 Subject: [PATCH] Add AnonymousOverflow --- .github/workflows/build.yml | 2 +- README.md | 2 ++ overlay.nix | 1 + packages.nix | 1 + packages/anonymous-overflow.nix | 22 ++++++++++++++++++++++ 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 packages/anonymous-overflow.nix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7652a7a..dd5fd9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,7 @@ jobs: with: name: nifoc authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build '.#anonymous-overflow' - run: nix build '.#fennel-ls' - run: nix build '.#luarocks-jsregexp' - run: nix build '.#nitter-unstable' @@ -39,6 +40,5 @@ jobs: - run: nix build '.#cliclick' - run: nix build '.#fennel-ls' - run: nix build '.#luarocks-jsregexp' - - run: nix build '.#nitter-unstable' - run: nix build '.#phantomjs' - run: nix build '.#q' diff --git a/README.md b/README.md index 8f02a69..95e62a3 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,10 @@ ## Software * [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2) +* [AnonymousOverflow](https://github.com/httpjamesm/AnonymousOverflow) * [cliclick](https://github.com/BlueM/cliclick) * [fennel-ls](https://git.sr.ht/~xerool/fennel-ls) * [luarocks-jsregexp](https://github.com/kmarius/jsregexp) +* [nitter](https://github.com/zedeus/nitter) * [phantomjs](https://github.com/ariya/phantomjs) * [q](https://github.com/natesales/q) diff --git a/overlay.nix b/overlay.nix index 5305b07..a95fc51 100644 --- a/overlay.nix +++ b/overlay.nix @@ -5,6 +5,7 @@ let in { inherit (custom) agilebits-op; + inherit (custom) anonymous-overflow; inherit (custom) cliclick; inherit (custom) fennel-ls; inherit (custom) luarocks-jsregexp; diff --git a/packages.nix b/packages.nix index 83208a7..26a2692 100644 --- a/packages.nix +++ b/packages.nix @@ -2,6 +2,7 @@ { agilebits-op = import ./packages/agilebits-op.nix { inherit system lib pkgs; }; + anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit system lib pkgs; }; cliclick = import ./packages/cliclick.nix { inherit system lib pkgs; }; fennel-ls = import ./packages/fennel-ls.nix { inherit system lib pkgs; }; luarocks-jsregexp = import ./packages/luarocks-jsregexp.nix { inherit system lib pkgs; }; diff --git a/packages/anonymous-overflow.nix b/packages/anonymous-overflow.nix new file mode 100644 index 0000000..b079283 --- /dev/null +++ b/packages/anonymous-overflow.nix @@ -0,0 +1,22 @@ +{ system, lib, pkgs }: + +pkgs.buildGoModule rec { + pname = "anonymous-overflow"; + version = "1.7.1"; + + src = pkgs.fetchFromGitHub { + owner = "httpjamesm"; + repo = "AnonymousOverflow"; + rev = "v${version}"; + sha256 = "sha256-bjwyxgUod3JFQ4AA0FM+N+n44uybhC07wKNdfxltAdE="; + }; + + vendorSha256 = "sha256-CAEGKBNqVnNJn8vP8yR93WKFNu/WLn9+kYinQQtiAYE="; + + meta = with lib; { + description = "View StackOverflow in privacy and without the clutter."; + homepage = "https://github.com/httpjamesm/AnonymousOverflow"; + license = [ licenses.mpl20 ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + }; +}