1
0
forked from clan/clan-core

merge-after-ci, tea-create-pr: use writeShellApplication

This commit is contained in:
lassulus 2023-07-28 16:48:13 +02:00
parent 6d0dd33ff1
commit 0adf78de2c
2 changed files with 14 additions and 15 deletions

View File

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

View File

@ -1,24 +1,24 @@
{
perSystem =
{ config
, pkgs
{ pkgs
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
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;