mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 04:56:14 +01:00
14 lines
293 B
Nix
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 $@
|
||
|
'';
|
||
|
};
|
||
|
}
|