uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/applications/video/mpv/scripts/convert.nix
Normal file
46
pkgs/applications/video/mpv/scripts/convert.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ stdenvNoCC, fetchgit, lib
|
||||
, yad, mkvtoolnix-cli, libnotify }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "mpv-convert-script";
|
||||
version = "2016-03-18";
|
||||
src = fetchgit {
|
||||
url = "https://gist.github.com/Zehkul/25ea7ae77b30af959be0";
|
||||
rev = "f95cee43e390e843a47e8ec9d1711a12a8cd343d";
|
||||
sha256 = "13m7l4sy2r8jv2sfrb3vvqvnim4a9ilnv28q5drlg09v298z3mck";
|
||||
};
|
||||
|
||||
patches = [ ./convert.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace convert_script.lua \
|
||||
--replace 'mkvpropedit_exe = "mkvpropedit"' \
|
||||
'mkvpropedit_exe = "${mkvtoolnix-cli}/bin/mkvpropedit"' \
|
||||
--replace 'mkvmerge_exe = "mkvmerge"' \
|
||||
'mkvmerge_exe = "${mkvtoolnix-cli}/bin/mkvmerge"' \
|
||||
--replace 'yad_exe = "yad"' \
|
||||
'yad_exe = "${yad}/bin/yad"' \
|
||||
--replace 'notify_send_exe = "notify-send"' \
|
||||
'notify_send_exe = "${libnotify}/bin/notify-send"' \
|
||||
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/mpv/scripts
|
||||
cp convert_script.lua $out/share/mpv/scripts
|
||||
'';
|
||||
passthru.scriptName = "convert_script.lua";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert parts of a video while you are watching it in mpv";
|
||||
homepage = "https://gist.github.com/Zehkul/25ea7ae77b30af959be0";
|
||||
maintainers = [ maintainers.Profpatsch ];
|
||||
longDescription = ''
|
||||
When this script is loaded into mpv, you can hit Alt+W to mark the beginning
|
||||
and Alt+W again to mark the end of the clip. Then a settings window opens.
|
||||
'';
|
||||
# author was asked to add a license https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-3715700
|
||||
license = licenses.unfree;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue