Merge pull request #183008 from ylh/patch-p9p-unpatch

plan9port: remove spurious patches
This commit is contained in:
Anderson Torres 2022-07-28 22:13:46 -03:00 committed by GitHub
commit 116cfcb60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,24 +17,8 @@ stdenv.mkDerivation rec {
};
postPatch = ''
#hardcoded path
substituteInPlace src/cmd/acme/acme.c \
--replace /lib/font/bit $out/plan9/font
#deprecated flags
find . -type f \
-exec sed -i -e 's/_SVID_SOURCE/_DEFAULT_SOURCE/g' {} \; \
-exec sed -i -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' {} \;
substituteInPlace bin/9c \
--replace 'which uniq' '${which}/bin/which uniq'
'' + lib.optionalString (!stdenv.isDarwin) ''
#add missing ctrl+c\z\x\v keybind for non-Darwin
substituteInPlace src/cmd/acme/text.c \
--replace "case Kcmd+'c':" "case 0x03: case Kcmd+'c':" \
--replace "case Kcmd+'z':" "case 0x1a: case Kcmd+'z':" \
--replace "case Kcmd+'x':" "case 0x18: case Kcmd+'x':" \
--replace "case Kcmd+'v':" "case 0x16: case Kcmd+'v':"
'';
buildInputs = [ perl ] ++ (if !stdenv.isDarwin then [