clan-core/pkgs/merge-after-ci/default.nix

28 lines
479 B
Nix
Raw Normal View History

2023-07-28 13:03:06 +00:00
{
perSystem =
{ pkgs
2023-07-28 13:03:06 +00:00
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
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
];
text = ''
2023-07-28 13:03:06 +00:00
bash ${./script.sh} "$@"
'';
};
2023-07-28 13:03:06 +00:00
in
{
packages.${name} = script;
};
}