NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.21k stars 14.2k forks source link

Package request: Moneydance #277931

Closed Steinhagen closed 9 months ago

Steinhagen commented 10 months ago

Project description

Moneydance is an easy to use and full-featured personal finance app that doesn't compromise your privacy. With Moneydance, your data is private, encrypted, and never shared.

Metadata


Add a :+1: reaction to issues you find important.

lucasbergman commented 9 months ago

Hi, I'm new to Nix and NixOS but managed to package Moneydance for myself. There are two problems preventing me from upstreaming it to nixpkgs.

  1. Moneydance doesn't have stable download URLs AFAICT. I'm going to open a ticket with them to see if they can help me with that.
  2. Something about the JRE and JavaFX, explained in my rant in the commit message. That's going to be a bit more complicated. I'm hoping someone on NixOS Discourse will have some pointers.
Steinhagen commented 9 months ago

Hi! Excellent work packaging it! Regarding your problems, here are my 2 cents:

  1. Moneydance doesn't have stable download URLs AFAICT. I'm going to open a ticket with them to see if they can help me with that.

I don't know if there is something you can do about. The same issue can be found with other packages, like the Yandex browser where they keep only 1 deb version, so the recipe must be updated every time a new version gets pushed upstream. That is how the upstream does things and having to rely on other 3rd parties that stores multiple versions might not be secure enough for some users.

  1. Something about the JRE and JavaFX, explained in my rant in the commit message. That's going to be a bit more complicated. I'm hoping someone on NixOS Discourse will have some pointers.

I think a good idea for this would be to create a PR (if you'd like to upstream your work), and see if the current solution is good enough.

lucasbergman commented 9 months ago

Thanks very much. I was actually able to get the second problem sorted (commit)! I'll ask the Moneydance people about stable URLs (perhaps they have some in their pocket that aren't exposed publicly?), but to your point, even if this is the best we can do, it's much better than nothing.

I'll give you a shout if/when I try to push upstream. If you want to mess with what I have in the meantime, please feel free.

Steinhagen commented 9 months ago

Nice one! Regarding the stable link for download, you can browse their stabledl directory: https://infinitekind.com/stabledl/

So for the latest version, you would have this link: https://infinitekind.com/stabledl/2023.3_5064/moneydance_linux_amd64.deb

lucasbergman commented 9 months ago

Oh my, I can't believe I didn't think to even try that! Great catch. With that fix, I think it's worth trying to upstream, no?

Steinhagen commented 9 months ago

I think so. Great job packaging this!

lucasbergman commented 9 months ago

Thanks very much! Created https://github.com/NixOS/nixpkgs/pull/283860.