Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Adding fallback values in case no mpd config file is found #64

Description

@PolarFill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions