Merge pull request from nbraud/mpv/mainProgram

mpv: Set `meta.mainProgram`
This commit is contained in:
Peder Bergebakken Sundt 2023-11-12 04:21:48 +02:00 committed by GitHub
commit ae883a5964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
pkgs/applications/video/mpv

View File

@ -256,6 +256,7 @@ in stdenv'.mkDerivation (finalAttrs: {
'';
changelog = "https://github.com/mpv-player/mpv/releases/tag/v${finalAttrs.version}";
license = licenses.gpl2Plus;
mainProgram = "mpv";
maintainers = with maintainers; [ AndersonTorres fpletz globin ma27 tadeokondrak ];
platforms = platforms.unix;
};

View File

@ -13,7 +13,7 @@ stdenvNoCC.mkDerivation {
postPatch = ''
substituteInPlace thumbfast.lua \
--replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getBin mpv-unwrapped}/bin/mpv"'
--replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"'
'';
dontBuild = true;