Hi! I recently tried to package gomp for NixPkgs. However, i discovered a very specific "bug" (or intended behavior) that makes the process difficult.
In it's current state, gomp crashes if no mpd config is found anywhere, throwing a No File Found at path : /etc/mpd.conf. The problem is, in NixOS, if you configure mpd in a declarative manner with the default settings attrset, it will write the configuration to the nix store, which makes it so that it can't be found by gomp, and the config path can't be patched from the nix derivation in a reproducible manner either. Besides that, this behavior causes custom mpd.conf paths in any other distro to not work.
What would fix the issue is if the application defined a fallback default value to avoid these types of crashes. So, for example, if the mpd config file wasn't found, the default mpd port (6600) would be set and could be overridden from gomp's config file.
Gomp seems like a great music player, and it's one of the few that provides native last.fm support, so I would be very happy to package it for nixpkgs! Thanks for continuously developing this application. If you need any additional info about the problem, feel free to ask.
Hi! I recently tried to package gomp for NixPkgs. However, i discovered a very specific "bug" (or intended behavior) that makes the process difficult.
In it's current state, gomp crashes if no mpd config is found anywhere, throwing a
No File Found at path : /etc/mpd.conf. The problem is, in NixOS, if you configure mpd in a declarative manner with the default settings attrset, it will write the configuration to the nix store, which makes it so that it can't be found by gomp, and the config path can't be patched from the nix derivation in a reproducible manner either. Besides that, this behavior causes custom mpd.conf paths in any other distro to not work.What would fix the issue is if the application defined a fallback default value to avoid these types of crashes. So, for example, if the mpd config file wasn't found, the default mpd port (6600) would be set and could be overridden from gomp's config file.
Gomp seems like a great music player, and it's one of the few that provides native last.fm support, so I would be very happy to package it for nixpkgs! Thanks for continuously developing this application. If you need any additional info about the problem, feel free to ask.