From 90a1f41890d5cf2f623e1e59dd471626612e94dc Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 15 Nov 2020 15:50:16 +0100 Subject: Static slider --- pkgs/larbs-scripts/slider.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/larbs-scripts/slider.nix b/pkgs/larbs-scripts/slider.nix index 66d16c1..530f25a 100644 --- a/pkgs/larbs-scripts/slider.nix +++ b/pkgs/larbs-scripts/slider.nix @@ -2,14 +2,19 @@ let voidrice = callPackage ../voidrice.nix { }; in - buildEnv { + stdenv.mkDerivation { name = "slider"; - paths = [ - (lowPrio ffmpeg) - (lowPrio imagemagick) - ]; - postBuild = '' - cp ${voidrice}/.local/bin/slider $out/bin/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 = { -- cgit 1.4.1