Skip to content

Instantly share code, notes, and snippets.

@confususs
Created April 7, 2021 19:05
Show Gist options
  • Save confususs/4be1abd8b3cbe7bb7fae11f356835f0f to your computer and use it in GitHub Desktop.
Save confususs/4be1abd8b3cbe7bb7fae11f356835f0f to your computer and use it in GitHub Desktop.
How to use ffmpeg when I call avconv
{ 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