Files
clan-core/flake-parts/tea-create-pr/default.nix

27 lines
472 B
Nix

{
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;
};
}