diff --git a/pkgs/by-name/no/nocturne/package.nix b/pkgs/by-name/no/nocturne/package.nix index e58831e39008..d7cc8945c3a5 100644 --- a/pkgs/by-name/no/nocturne/package.nix +++ b/pkgs/by-name/no/nocturne/package.nix @@ -25,6 +25,8 @@ webp-pixbuf-loader, libavif, libheif, + versionCheckHook, + fontconfig, }: stdenv.mkDerivation (finalAttrs: { @@ -104,6 +106,18 @@ stdenv.mkDerivation (finalAttrs: { # avoid installing Navidrome at runtime if not available, incompatible with the nix store patches = [ ./disable-navidrome-setup.patch ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckKeepEnvironment = [ + "XDG_CACHE_HOME" + "FONTCONFIG_FILE" + ]; + # it still errors due to lack of display, but the retcode is 0 and the version is printed + preInstallCheck = '' + export XDG_CACHE_HOME=$(mktemp -d) + export FONTCONFIG_FILE="${fontconfig.out}/etc/fonts/fonts.conf" + ''; + meta = { description = "Adwaita music player for OpenSubsonic servers like Navidrome"; homepage = "https://jeffser.com/nocturne/";