Skip to content

Commit 2683080

Browse files
committed
Set the ffmpeg and imagemagick URLs explicitly
1 parent 648622a commit 2683080

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

default.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ sources ? import ./nix/sources.nix
22
, pkgs ? import sources.nixpkgs { }
33
, poetry2nix ? import sources.poetry2nix { inherit pkgs; }
4+
, lib ? pkgs.lib
45
}:
56

67
let
@@ -17,4 +18,14 @@ let
1718
});
1819
};
1920
in
20-
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

Comments
 (0)