fucku
This commit is contained in:
parent
6c504fb899
commit
78f86cf6ad
14
lib.nix
14
lib.nix
|
@ -2,18 +2,4 @@
|
|||
{
|
||||
flatMap = (f: list: builtins.foldl' (acc: elem: acc // elem) {} (builtins.map f list));
|
||||
flatMapS = (f: list: builtins.foldl' (acc: elem: acc + elem) "" (builtins.map f list));
|
||||
git-forward-shell = pkgs.stdenv.mkDerivation {
|
||||
name = "git-forward-shell";
|
||||
passthru = {
|
||||
shellPath = "/bin/git-forward-shell";
|
||||
};
|
||||
phases = [ "installPhase" ];
|
||||
src = pkgs.writeScriptBin "git-forward-shell" ''
|
||||
#!/bin/sh
|
||||
ssh -p 2222 -o StrictHostKeyChecking=no git@gitea.containers "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" bash $@"
|
||||
'';
|
||||
installPhase = ''
|
||||
cp -r $src $out
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user