clan-core/pkgs/merge-after-ci/default.nix
lassulus b8fd28af2f
All checks were successful
build / test (push) Successful in 8s
move flake-parts into pkgs or toplevel
2023-08-03 17:11:36 +02:00

28 lines
479 B
Nix

{
perSystem =
{ pkgs
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
script = pkgs.writeShellApplication {
inherit name;
runtimeInputs = [
pkgs.bash
pkgs.coreutils
pkgs.git
pkgs.tea
pkgs.openssh
self'.packages.tea-create-pr
];
text = ''
bash ${./script.sh} "$@"
'';
};
in
{
packages.${name} = script;
};
}