haskellPackages.mplayer-spot: add runtime dependency on mplayer

This commit is contained in:
(cdep)illabout 2020-02-13 10:23:23 +09:00 committed by Peter Simons
parent a0171c6439
commit c44ded75fe

View File

@ -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}"
'';
});
}