Files
nextjs-python-web-template/pkgs/tea-create-pr/default.nix
2023-08-03 17:11:36 +02:00

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