fix: expose releases as well

This commit is contained in:
eric
2026-03-04 09:35:05 +01:00
parent 86a0792b6e
commit ef3cf30a34

View File

@@ -79,13 +79,24 @@
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
config = mkDevShellConfig pkgs; config = mkDevShellConfig pkgs;
env = devshell-lib.lib.mkDevShell ({ inherit system; } // config); env = devshell-lib.lib.mkDevShell (
({ inherit system; } // config)
// {
extraPackages = config.extraPackages ++ [ self.packages.${system}.release ];
}
);
in in
{ {
default = env.shell; default = env.shell;
} }
); );
packages = forAllSystems (system: {
release = devshell-lib.lib.mkRelease {
inherit system;
};
});
checks = forAllSystems ( checks = forAllSystems (
system: system:
let let
@@ -107,7 +118,7 @@
(devshell-lib.lib.mkDevShell ({ inherit system; } // config)).formatter (devshell-lib.lib.mkDevShell ({ inherit system; } // config)).formatter
); );
# Optional: release command (`release`) # Release command (`release`)
# #
# The release script always updates VERSION first, then: # The release script always updates VERSION first, then:
# 1) runs release steps in order (file writes and scripts) # 1) runs release steps in order (file writes and scripts)
@@ -117,6 +128,7 @@
# Runtime env vars available in release.run/postVersion: # Runtime env vars available in release.run/postVersion:
# BASE_VERSION, CHANNEL, PRERELEASE_NUM, FULL_VERSION, FULL_TAG # BASE_VERSION, CHANNEL, PRERELEASE_NUM, FULL_VERSION, FULL_TAG
# #
# To customize release behavior in your repo, edit:
# packages = forAllSystems ( # packages = forAllSystems (
# system: # system:
# { # {