2023-07-28 13:03:06 +00:00
|
|
|
{
|
|
|
|
perSystem =
|
2023-07-28 14:48:13 +00:00
|
|
|
{ pkgs
|
2023-07-28 13:03:06 +00:00
|
|
|
, self'
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
name = builtins.baseNameOf ./.;
|
2023-07-28 14:48:13 +00:00
|
|
|
script = pkgs.writeShellApplication {
|
|
|
|
inherit name;
|
|
|
|
runtimeInputs = [
|
2023-07-28 13:03:06 +00:00
|
|
|
pkgs.bash
|
|
|
|
pkgs.coreutils
|
|
|
|
pkgs.git
|
|
|
|
pkgs.tea
|
|
|
|
pkgs.openssh
|
|
|
|
self'.packages.tea-create-pr
|
2023-07-28 14:48:13 +00:00
|
|
|
];
|
|
|
|
text = ''
|
2023-07-28 13:03:06 +00:00
|
|
|
bash ${./script.sh} "$@"
|
|
|
|
'';
|
2023-07-28 14:48:13 +00:00
|
|
|
};
|
2023-07-28 13:03:06 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
packages.${name} = script;
|
|
|
|
};
|
|
|
|
}
|