Hacker News new | ask | show | jobs
by pxc 1265 days ago
Looks like posting this to Hacker News got it packaged for Nixpkgs¹! I had to add it via package override when the article came out, but it's since been added to Nixpkgs. :)

If you're a NixOS newbie and you don't want to wait for the PR to land, you can add it with a package override by pasting in the function body from the PR and prepending a `with` expression for the original Nixpkgs used in the override, like:

  nixpkgs.config.packageOverrides = superPkgs: {
    ov = with superPkgs; buildGoModule rec {
      pname = "ov";
      version = "0.13.0";
      <...>
      meta = with lib; {
        description = "Feature-rich terminal-based text viewer";
        homepage = "https://noborus.github.io/ov";
        license = licenses.mit;
        platforms = platforms.linux ++ platforms.darwin;
      };
    };
  };
Hopefully in a week or two, Nixpkgs will provide another convenient way for Linux and macOS users to quickly try out this new pager! I know I'll be following along to see how it develops. :)

--

1: https://github.com/NixOS/nixpkgs/pull/209034