mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: provide wrapped packages
This commit is contained in:
parent
fb9e62db99
commit
845afbeaf5
12 changed files with 77 additions and 29 deletions
20
wrappers/nf-generate.nix
Normal file
20
wrappers/nf-generate.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
system,
|
||||
inputs,
|
||||
...
|
||||
}@args: let
|
||||
lib = inputs.nixpkgs.lib;
|
||||
exportFile = import ./exports.nix args;
|
||||
inherit (exportFile) exports exportsSystems;
|
||||
inherit (lib.strings) makeBinPath;
|
||||
inherit (inputs.std.lib) string list set;
|
||||
packages = inputs.self.packages.${system};
|
||||
inherit (inputs.self.legacyPackages.${system}) pkgs;
|
||||
nf-generate = pkgs.writeShellScriptBin "nf-generate" ''
|
||||
${exports}
|
||||
export PATH="$PATH:${makeBinPath [pkgs.jq]}"
|
||||
NF_INPUT_CI=${string.escapeShellArg inputs.ci}
|
||||
NF_CONFIG_FILES=(${string.concatMapSep " " string.escapeShellArg ci.workflowConfigs})
|
||||
source ${../ci/generate.sh}
|
||||
'';
|
||||
in nf-generate
|
||||
Loading…
Add table
Add a link
Reference in a new issue