Skip to content

Commit

Permalink
nix: enhance TERMINFO for Linux builds (#1187)
Browse files Browse the repository at this point in the history
Some distros have terminfo on /usr/lib/terminfo, like Ubuntu.
Others have them on /usr/share/terminfo, like Fedora. Include
all possible paths to be as compatible as possible.

Closes #1185
  • Loading branch information
elopez committed Feb 6, 2024
1 parent 603dc35 commit 88ccd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
mkdir -p $out/bin
cp ${pkgsStatic.haskell.lib.dontCheck echidna-static}/bin/echidna $out/bin/
# fix TERMINFO path in ncurses
${perl} -i -pe 's#(${ncurses-static}/share/terminfo)#"/usr/share/terminfo" . "\x0" x (length($1) - 19)#e' $out/bin/echidna
${perl} -i -pe 's#(${ncurses-static}/share/terminfo)#"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo" . "\x0" x (length($1) - 65)#e' $out/bin/echidna
chmod 555 $out/bin/echidna
'' else pkgs.runCommand "echidna-stripNixRefs" {} ''
mkdir -p $out/bin
Expand Down

0 comments on commit 88ccd4c

Please sign in to comment.