@@ -31,10 +31,14 @@ stdenv.mkDerivation rec {
3131 #hardcoded path
3232 substituteInPlace src/cmd/acme/acme.c \
3333 --replace /lib/font/bit $out/plan9/font
34+
3435 #deprecated flags
3536 find . -type f \
3637 -exec sed -i -e 's/_SVID_SOURCE/_DEFAULT_SOURCE/g' {} \; \
3738 -exec sed -i -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' {} \;
39+
40+ substituteInPlace bin/9c \
41+ --replace 'which uniq' '${which}/bin/which uniq'
3842 '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
3943 #add missing ctrl+c\z\x\v keybind for non-Darwin
4044 substituteInPlace src/cmd/acme/text.c \
@@ -45,7 +49,7 @@ stdenv.mkDerivation rec {
4549 '';
4650
4751 buildInputs = [
48− which perl
52+ perl
4953 ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
5054 xorgproto libX11 libXext libXt fontconfig
5155 freetype # fontsrv wants ft2build.h provides system fonts for acme and sam.