diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 1c8775d6ca4..c1b1c22d554 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -692,4 +692,13 @@ self: super: builtins.intersectAttrs super { # checks SQL statements at compile time, and so requires a running PostgreSQL # database to run it's test suite postgresql-typed = dontCheck super.postgresql-typed; + + # mplayer-spot uses mplayer at runtime. + mplayer-spot = + let path = pkgs.stdenv.lib.makeBinPath [ pkgs.mplayer ]; + in overrideCabal (addBuildTool super.mplayer-spot pkgs.makeWrapper) (oldAttrs: { + postInstall = '' + wrapProgram $out/bin/mplayer-spot --prefix PATH : "${path}" + ''; + }); }