1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

fix(i3): remove superfluous rot13 scripts from klem

This commit is contained in:
Kierán Meinhardt
2020-06-10 17:27:26 +02:00
parent ddd9a96cec
commit 2c3957735b

View File

@@ -23,20 +23,6 @@ let
"ipa" = pkgs.writers.writeDash "ipa" ''
${scripts.ipa}/bin/ipa
'';
"rot13.hs" = pkgs.writers.writeHaskell "rot13.hs" {} ''
import Data.Char (chr, isAlpha, ord, toLower)
import Data.Bool (bool)
main = interact $ map $ \c ->
if isAlpha c
then chr $ bool (-) (+) ('m' >= toLower c) (ord c) 13
else c
'';
"rot13.py" = pkgs.writers.writePython3 "rot13.py" {} ''
import codecs
import sys
sys.stdout.write(codecs.encode(sys.stdin.read(), "rot13"))
'';
};
};