about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/larbs-scripts/bare.nix1
-rw-r--r--pkgs/larbs-scripts/default.nix4
-rw-r--r--pkgs/larbs-scripts/slider.nix19
3 files changed, 24 insertions, 0 deletions
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";
+    };
+  }