From 6716405c1f2110e55f4b294c58e7c923d2a3cb10 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 4 Nov 2020 13:10:26 +0100 Subject: Add slider script dependencies --- pkgs/larbs-scripts/bare.nix | 1 + pkgs/larbs-scripts/default.nix | 4 ++++ pkgs/larbs-scripts/slider.nix | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 pkgs/larbs-scripts/slider.nix (limited to 'pkgs') diff --git a/pkgs/larbs-scripts/bare.nix b/pkgs/larbs-scripts/bare.nix index 05f27c9..5e0e9bf 100644 --- a/pkgs/larbs-scripts/bare.nix +++ b/pkgs/larbs-scripts/bare.nix @@ -11,6 +11,7 @@ in for f in `ls -p ${voidrice}/.local/bin | grep -v /`; do cp ${voidrice}/.local/bin/$f $out/bin done + rm $out/bin/slider ''; meta = { diff --git a/pkgs/larbs-scripts/default.nix b/pkgs/larbs-scripts/default.nix index ea4a62c..f1f906c 100644 --- a/pkgs/larbs-scripts/default.nix +++ b/pkgs/larbs-scripts/default.nix @@ -5,6 +5,7 @@ let cron = callPackage ./cron.nix { }; i3cmds = callPackage ./i3cmds.nix { }; statusbar = callPackage ./statusbar.nix { }; + slider = callPackage ./slider.nix { }; in buildEnv { name = "larbs-scripts"; @@ -13,6 +14,9 @@ in cron i3cmds statusbar + + ## Movie creation + slider ]; meta = { diff --git a/pkgs/larbs-scripts/slider.nix b/pkgs/larbs-scripts/slider.nix new file mode 100644 index 0000000..7f38820 --- /dev/null +++ b/pkgs/larbs-scripts/slider.nix @@ -0,0 +1,19 @@ +{ stdenv, callPackage, buildEnv, ffmpeg, imagemagick }: +let + voidrice = callPackage ../voidrice.nix { }; +in + buildEnv { + name = "slider"; + paths = [ + ffmpeg + imagemagick + ]; + postBuild = '' + cp ${voidrice}/.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"; + }; + } -- cgit 1.4.1