clan-core/flake-parts/merge-after-ci/default.nix

29 lines
504 B
Nix
Raw Normal View History

2023-07-28 13:03:06 +00:00
{
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;
};
}