forked from clan/clan-infra
move job-flake out of flake-parts
This commit is contained in:
parent
186132130f
commit
1b5c7c393a
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -41,9 +41,6 @@
|
|||||||
inputs.treefmt-nix.flakeModule
|
inputs.treefmt-nix.flakeModule
|
||||||
inputs.clan-core.modules.flake-parts.writers
|
inputs.clan-core.modules.flake-parts.writers
|
||||||
./devShells/flake-module.nix
|
./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
|
./targets/flake-module.nix
|
||||||
./modules/flake-module.nix
|
./modules/flake-module.nix
|
||||||
./pkgs/flake-module.nix
|
./pkgs/flake-module.nix
|
||||||
|
@ -20,6 +20,18 @@
|
|||||||
inherit (config.writers) writePureShellScriptBin;
|
inherit (config.writers) writePureShellScriptBin;
|
||||||
inherit (config.packages) action-checkout action-ensure-tea-login action-create-pr action-flake-update;
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
7
pkgs/job-flake-update-clan-core/default.nix
Normal file
7
pkgs/job-flake-update-clan-core/default.nix
Normal 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}
|
||||||
|
''
|
10
pkgs/job-flake-update-clan-homepage/default.nix
Normal file
10
pkgs/job-flake-update-clan-homepage/default.nix
Normal 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}
|
||||||
|
''
|
10
pkgs/job-flake-update-clan-infra/default.nix
Normal file
10
pkgs/job-flake-update-clan-infra/default.nix
Normal 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}
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user