Merge pull request 'move job-flake out of flake-parts' (#65) from flake-parts-refactoring into main
All checks were successful
build / test (push) Successful in 7s

This commit is contained in:
clan-bot 2023-08-03 14:35:57 +00:00
commit 550a53b8ef
11 changed files with 39 additions and 72 deletions

View File

@ -1,23 +0,0 @@
{
perSystem =
{ config
, pkgs
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
pkgs.bash
self'.packages.action-flake-update-pr-clan
]
''
bash ${./script.sh}
'';
in
{
packages.${name} = script;
};
}

View File

@ -1,23 +0,0 @@
{
perSystem =
{ config
, pkgs
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
pkgs.bash
self'.packages.action-flake-update-pr-clan
]
''
bash ${./script.sh}
'';
in
{
packages.${name} = script;
};
}

View File

@ -1,23 +0,0 @@
{
perSystem =
{ config
, pkgs
, self'
, ...
}:
let
name = builtins.baseNameOf ./.;
script = config.writers.writePureShellScriptBin
name
[
pkgs.bash
self'.packages.action-flake-update-pr-clan
]
''
bash ${./script.sh}
'';
in
{
packages.${name} = script;
};
}

View File

@ -41,9 +41,6 @@
inputs.treefmt-nix.flakeModule
inputs.clan-core.modules.flake-parts.writers
./devShells/flake-module.nix
./flake-parts/job-flake-update-clan-core
./flake-parts/job-flake-update-clan-homepage
./flake-parts/job-flake-update-clan-infra
./targets/flake-module.nix
./modules/flake-module.nix
./pkgs/flake-module.nix

View File

@ -20,6 +20,18 @@
inherit (config.writers) writePureShellScriptBin;
inherit (config.packages) action-checkout action-ensure-tea-login action-create-pr action-flake-update;
};
job-flake-update-clan-core = pkgs.callPackage ./job-flake-update-clan-core {
inherit (config.writers) writePureShellScriptBin;
inherit (config.packages) action-flake-update-pr-clan;
};
job-flake-update-clan-homepage = pkgs.callPackage ./job-flake-update-clan-homepage {
inherit (config.writers) writePureShellScriptBin;
inherit (config.packages) action-flake-update-pr-clan;
};
job-flake-update-clan-infra = pkgs.callPackage ./job-flake-update-clan-infra {
inherit (config.writers) writePureShellScriptBin;
inherit (config.packages) action-flake-update-pr-clan;
};
};
};
}

View File

@ -0,0 +1,7 @@
{ bash
, action-flake-update-pr-clan
, writePureShellScriptBin
}:
writePureShellScriptBin "job-flake-update-clan-core" [ bash action-flake-update-pr-clan ] ''
bash ${./script.sh}
''

View File

@ -0,0 +1,10 @@
{ bash
, action-flake-update-pr-clan
, writePureShellScriptBin
}:
writePureShellScriptBin "job-flake-update-clan-homepage" [
bash
action-flake-update-pr-clan
] ''
bash ${./script.sh}
''

View File

@ -0,0 +1,10 @@
{ bash
, action-flake-update-pr-clan
, writePureShellScriptBin
}:
writePureShellScriptBin "job-flake-update-clan-infra" [
bash
action-flake-update-pr-clan
] ''
bash ${./script.sh}
''