diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-04 13:10:26 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-04 13:10:26 +0100 |
commit | 6716405c1f2110e55f4b294c58e7c923d2a3cb10 (patch) | |
tree | 6058ff820effff49e8185630b27917d58a9632fa | |
parent | 6d8a9bc6258a850a73c4709e0e9d372eb75277e1 (diff) | |
download | pnpkgs-6716405c1f2110e55f4b294c58e7c923d2a3cb10.tar.gz pnpkgs-6716405c1f2110e55f4b294c58e7c923d2a3cb10.zip |
Add slider script dependencies
-rw-r--r-- | pkgs/larbs-scripts/bare.nix | 1 | ||||
-rw-r--r-- | pkgs/larbs-scripts/default.nix | 4 | ||||
-rw-r--r-- | pkgs/larbs-scripts/slider.nix | 19 |
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"; + }; + } |