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,26 +1,20 @@
{
perSystem =
{ pkgs
, ...
}:
let
name = builtins.baseNameOf ./.;
script = pkgs.writeShellApplication {
inherit name;
runtimeInputs = [
pkgs.bash
pkgs.coreutils
pkgs.git
pkgs.tea
pkgs.openssh
];
text = ''
export EDITOR=${pkgs.vim}/bin/vim
bash ${./script.sh} "$@"
'';
};
in
{
packages.${name} = script;
};
{ writeShellApplication
, bash
, coreutils
, git
, tea
, openssh
}:
writeShellApplication {
name = "tea-create-pr";
runtimeInputs = [
bash
coreutils
git
tea
openssh
];
text = ''
bash ${./script.sh} "$@"
'';
}