feat: merge wrapped packages into root

This commit is contained in:
Kat Inskip 2024-10-25 13:47:50 -04:00
parent 18845f9f3f
commit 9c34345ee3
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 29 additions and 4 deletions

18
flake.lock generated
View file

@ -70,6 +70,23 @@
"type": "github"
}
},
"ci": {
"flake": false,
"locked": {
"lastModified": 1726101086,
"narHash": "sha256-veBakX/c/GfwzLtp62bcEm6Coype+03Hz8Aydi2b9xg=",
"owner": "arcnmx",
"repo": "ci",
"rev": "154533df13bc059400186a9d52e000363f0a3cb2",
"type": "github"
},
"original": {
"owner": "arcnmx",
"ref": "v0.7",
"repo": "ci",
"type": "github"
}
},
"crane": {
"inputs": {
"flake-compat": [
@ -538,6 +555,7 @@
"arcexprs": "arcexprs",
"base16": "base16",
"base16-data": "base16-data",
"ci": "ci",
"darwin": "darwin",
"deploy-rs": "deploy-rs",
"empty": "empty",

View file

@ -27,6 +27,10 @@
flake-compat.follows = "flake-compat";
};
};
ci = {
url = "github:arcnmx/ci/v0.7";
flake = false;
};
flakelibstd = {
url = "github:flakelib/std";
inputs.nix-std.follows = "std";

View file

@ -12,9 +12,9 @@
checks = set.map (_: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
in
{
inherit inputs tree std pkgs formatter lib checks wrappers;
inherit inputs tree std pkgs formatter lib checks;
legacyPackages = pkgs;
packages = pkgs // wrappers;
packages = set.merge [pkgs wrappers.packages];
}
// systems
// shells

View file

@ -5,6 +5,8 @@
inputs.utils.lib.eachDefaultSystem (system: let
newArgs = args // { inherit system; };
in {
packages = {
nf-actions-test = import ./nf-actions-test.nix newArgs;
nf-generate = import ./nf-generate.nix newArgs;
};
})

View file

@ -10,6 +10,7 @@
inherit (inputs.std.lib) string list set;
packages = inputs.self.packages.${system};
inherit (inputs.self.legacyPackages.${system}) pkgs;
inherit (import ../ci/nix.nix) ci;
nf-generate = pkgs.writeShellScriptBin "nf-generate" ''
${exports}
export PATH="$PATH:${makeBinPath [pkgs.jq]}"