We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 648622a commit 2683080Copy full SHA for 2683080
1 file changed
default.nix
@@ -1,6 +1,7 @@
1
{ sources ? import ./nix/sources.nix
2
, pkgs ? import sources.nixpkgs { }
3
, poetry2nix ? import sources.poetry2nix { inherit pkgs; }
4
+, lib ? pkgs.lib
5
}:
6
7
let
@@ -17,4 +18,14 @@ let
17
18
});
19
};
20
in
- hackyplayer.dependencyEnv
21
+ hackyplayer.dependencyEnv.override {
22
+ app = hackyplayer.overridePythonAttrs (old: {
23
+ postPatch = ''
24
+ ${old.postPatch or ""}
25
+
26
+ substituteInPlace hackyplayer/formvideo.py \
27
+ --replace-fail 'FFMPEG_BIN = "ffmpeg"' 'FFMPEG_BIN = "${lib.getExe' pkgs.ffmpeg "ffmpeg"}"' \
28
+ --replace-fail 'IMAGEMAGICK_BIN = "convert"' 'IMAGEMAGICK_BIN = "${lib.getExe' pkgs.imagemagick "convert"}"'
29
+ '';
30
+ });
31
+ }
0 commit comments