Created
April 7, 2021 19:05
-
-
Save confususs/4be1abd8b3cbe7bb7fae11f356835f0f to your computer and use it in GitHub Desktop.
How to use ffmpeg when I call avconv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
let | |
avconv = runCommand "avconv" { | |
buildInputs = [ makeWrapper ]; | |
} '' | |
mkdir $out | |
ln -s ${ffmpeg}/* $out | |
rm $out/bin | |
mkdir $out/bin | |
ln -s ${ffmpeg}/bin/* $out/bin | |
rm $out/bin/ffmpeg | |
makeWrapper ${ffmpeg}/bin/ffmpeg $out/bin/avconv | |
''; | |
in mkShell { | |
name = "hmm"; | |
buildInputs = with pkgs; [ | |
avconv | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment