dotfiles/nix/overlays/shh/default.nix
Magic_RB ce73f39891
Add shh, a Haskell shell
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:38 +02:00

14 lines
293 B
Nix

final: prev:
let
ghc = prev.haskellPackages.ghcWithPackages (p: with p; [shh shh-extras word8]);
in
{
magic_rb = prev.magic_rb or {} // {
shh = prev.writeShellScriptBin "shh" ''
export PATH=${ghc}/bin:${prev.haskellPackages.shh}/bin:$PATH
exec shh $@
'';
};
}