I just discovered nom, a tui rss-reader that I think is pretty neat. I thought it would be cool to have this in Nix and it seemed like a simple enough application to give it a try myself.
Having never packaged a new application before, I just had a look at restic’s default.nix and removed anything I thought wasn’t needed.
I came up with this:
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nom";
version = "2.0.2";
src = fetchFromGitHub {
owner = "guyfedwards";
repo = "nom";
rev = "v${version}";
hash = "sha256-6tk8NRuBbRMoaz3CmUUOC6thxIgjk/MWl50+YgQ6l5o=";
};
vendorHash = "sha256-fP6yxfIQoVaBC9hYcrCyo3YP3ntEVDbDTwKMO9TdyDI=";
meta = with lib; {
homepage = "https://github.com/guyfedwards/nom";
description = "RSS reader for the terminal ";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.gpl3;
maintainers = [];
};
}
Totally works, which is great, but there’s also nix-output-monitor in nixpkgs
that shares the same nom
name for its binary.
What’s the correct way of dealing with something like this? I can only think of actually convincing upstream to change the name, or alternatively using a custom one just for nix.