diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-06-23 16:56:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-23 16:56:33 +0100 |
commit | e15b33639f6929826abbba789f2c44425a134eae (patch) | |
tree | e1f1c7117f8c32b529eca8fd62c2d9f732aa7a47 /pkgs/tools | |
parent | 71e7882eadc398ed7d6cd85bdc221ea3ef3d317b (diff) | |
parent | 31a88b46647a6fd0a5098552e4bae386747c503d (diff) | |
download | nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar.gz nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar.bz2 nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar.lz nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar.xz nixlib-e15b33639f6929826abbba789f2c44425a134eae.tar.zst nixlib-e15b33639f6929826abbba789f2c44425a134eae.zip |
Merge pull request #16386 from peterhoeg/togglesg
togglesg-download: 2016-02-08 -> 2016-05-31
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/togglesg-download/default.nix | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/tools/misc/togglesg-download/default.nix b/pkgs/tools/misc/togglesg-download/default.nix index 30b632f525d2..14b9b1fcd9df 100644 --- a/pkgs/tools/misc/togglesg-download/default.nix +++ b/pkgs/tools/misc/togglesg-download/default.nix @@ -1,15 +1,15 @@ -{ stdenv, fetchFromGitHub, buildPythonApplication, makeWrapper, ffmpeg }: +{ stdenv, lib, fetchFromGitHub, buildPythonApplication, makeWrapper, ffmpeg_3 }: buildPythonApplication rec { name = "togglesg-download-git-${version}"; - version = "2016-02-08"; + version = "2016-05-31"; src = fetchFromGitHub { owner = "0x776b7364"; repo = "toggle.sg-download"; - rev = "5cac3ec039d67ad29240b2fa850a8db595264e3d"; - sha256 = "0pqw73aa5b18d5ws4zj6gcmzap6ag526jrylqq80m0yyh9yxw5hs"; + rev = "7d7c5f4d549360f95e248accd9771949abd94ad2"; + sha256 = "0xj42khvacwmhbiy2p8rxk7lqg7pvya4zdc2c34lnr3avdp49fjn"; }; nativeBuildInputs = [ makeWrapper ]; @@ -20,12 +20,11 @@ buildPythonApplication rec { installPhase = '' mkdir -p $out/bin - install -m755 download_toggle_video2.py $out/bin/download_toggle_video2.py + substitute $src/download_toggle_video2.py $out/bin/download_toggle_video2.py \ + --replace "ffmpeg_download_cmd = 'ffmpeg" "ffmpeg_download_cmd = '${lib.getBin ffmpeg_3}/bin/ffmpeg" + chmod 0755 $out/bin/download_toggle_video2.py ''; - postInstall = stdenv.lib.optionalString (ffmpeg != null) - ''wrapProgram $out/bin/download_toggle_video2.py --prefix PATH : "${ffmpeg}/bin"''; - meta = with stdenv.lib; { homepage = "https://github.com/0x776b7364/toggle.sg-download"; description = "Command-line tool to download videos from toggle.sg written in Python"; |