biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / ocaml-modules / plotkicadsch / fix-paths.patch
blobd9e8d5109f53b93a97a0546ed99fd887c5ffecd6
1 diff --git a/plotkicadsch/src/git-imgdiff b/plotkicadsch/src/git-imgdiff
2 index cbddecb..8d21a8a 100755
3 --- a/plotkicadsch/src/git-imgdiff
4 +++ b/plotkicadsch/src/git-imgdiff
5 @@ -1,4 +1,4 @@
6 #!/bin/bash
7 PIPE=$(mktemp -u)
8 -(! compare -metric RMSE $2 $1 png:${PIPE} 2> /dev/null) && (montage -geometry +4+4 $2 $PIPE $1 png:- | display -title "$1" -)
9 +(! @imagemagick@/bin/compare -metric RMSE $2 $1 png:${PIPE} 2> /dev/null) && (@imagemagick@/bin/montage -geometry +4+4 $2 $PIPE $1 png:- | @imagemagick@/bin/display -title "$1" -)
10 rm $PIPE
11 diff --git a/plotkicadsch/src/sysAbst.ml b/plotkicadsch/src/sysAbst.ml
12 index c3c7b52..15db6d4 100644
13 --- a/plotkicadsch/src/sysAbst.ml
14 +++ b/plotkicadsch/src/sysAbst.ml
15 @@ -30,7 +30,7 @@ let detect_os () : os =
16 if Sys.win32 then Windows
17 else if Sys.cygwin then Cygwin
18 else
19 - let ((in_ch, _, _) as uname) = UnixLabels.open_process_full "uname" ~env:[| |] in
20 + let ((in_ch, _, _) as uname) = UnixLabels.open_process_full "@coreutils@/bin/uname" ~env:[| |] in
21 let os = input_line in_ch in
22 ignore (UnixLabels.close_process_full uname) ;
23 match os with
24 --
25 2.37.1