use callPackage for merge-after-ci, nix-unit & tea-create-pr

This commit is contained in:
lassulus
2023-08-03 18:04:03 +02:00
parent 6042d6eef5
commit d947c32a9b
5 changed files with 53 additions and 59 deletions

View File

@@ -1,27 +1,23 @@
{
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;
};
{ writeShellApplication
, coreutils
, bash
, git
, tea
, openssh
, tea-create-pr
, ...
}:
writeShellApplication {
name = "merge-after-ci";
runtimeInputs = [
bash
coreutils
git
tea
openssh
tea-create-pr
];
text = ''
bash ${./script.sh} "$@"
'';
}