about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-15 15:50:16 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-15 15:50:16 +0100
commit90a1f41890d5cf2f623e1e59dd471626612e94dc (patch)
tree88cbfbca902bf0ee1d23fc70cb84fa85f3e8ca26
parent23a487cd75fd7e2a73024e30752a47f6473f6df7 (diff)
downloadpnpkgs-90a1f41890d5cf2f623e1e59dd471626612e94dc.tar.gz
pnpkgs-90a1f41890d5cf2f623e1e59dd471626612e94dc.zip
Static slider
-rw-r--r--pkgs/larbs-scripts/slider.nix19
1 files 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 = {