about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/slider.nix
blob: ab18cf410fd51e1d08b7a299c6dabd40c15eff41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, callPackage, buildEnv, lowPrio, ffmpeg, imagemagick }:
let
  voidrice = callPackage ../voidrice.nix { };
in
  stdenv.mkDerivation {
    name = "slider";

    src = voidrice;

    buildPhase = ''
      sed -i 's:ffmpeg:${ffmpeg}/bin/ffmpeg:g' .local/bin/slider
      sed -i 's:convert:${imagemagick}/bin/convert:g' .local/bin/slider
    '';

    installPhase = ''
      mkdir -p $out/bin
      cp  .local/bin/slider $out/bin/slider
    '';

    meta = {
      description = "Give a file with images and timecodes and creates a video slideshow of them.";
      homepage = "https://github.com/LukeSmithXYZ/voidrice";
    };
  }