tea-create-pr: init

This commit is contained in:
DavHau
2023-07-28 14:11:19 +02:00
parent 4950694270
commit 0d0df11897
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{
perSystem =
{ config
, pkgs
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
pkgs.bash
pkgs.coreutils
pkgs.git
pkgs.tea
pkgs.openssh
]
''
export EDITOR=${pkgs.vim}/bin/vim
bash ${./script.sh} "$@"
'';
in
{
packages.${name} = script;
};
}