Files
clan-core/flake-parts/merge-after-ci/default.nix
2023-07-28 15:10:24 +02:00

29 lines
504 B
Nix

{
perSystem =
{ config
, pkgs
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
pkgs.bash
pkgs.coreutils
pkgs.git
pkgs.tea
pkgs.openssh
self'.packages.tea-create-pr
]
''
export EDITOR=${pkgs.vim}/bin/vim
bash ${./script.sh} "$@"
'';
in
{
packages.${name} = script;
};
}