Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirroring nixos-yymm-small #17

Open
thefossguy opened this issue Mar 8, 2024 · 1 comment
Open

Mirroring nixos-yymm-small #17

thefossguy opened this issue Mar 8, 2024 · 1 comment

Comments

@thefossguy
Copy link

For flakes that I use for devShells, I'd prefer to use the nixos-$release-small branch of nixpkgs. Specifically because they get faster patches than the normal channels and it's good to have that peace of mind for something used at work. :)

I'm happy to send a PR, but I'm not sure how the semantic versioning for that branch might look and this issue is to track exactly that.

Given, nixos-unstable = 0.1.x and nixos-yy.mm = 0.yymm.x., is nixos-yymm-small = 0.2.yymm.x. okay?

@thefossguy thefossguy changed the title Mirroring nixos-yymm-mall Mirroring nixos-yymm-small Mar 8, 2024
@thefossguy
Copy link
Author

thefossguy commented Mar 8, 2024

I'm so stupid, went for a walk and I'm back with 0.yymm-small.x.. This should be better. Waiting on input :)

diff --git a/.github/workflows/nixpkgs.yml b/.github/workflows/nixpkgs.yml
index 2988aad..1b68172 100644
--- a/.github/workflows/nixpkgs.yml
+++ b/.github/workflows/nixpkgs.yml
@@ -28,7 +28,7 @@ jobs:
                 process.exit(1);
             }
             console.log(`Calculating the minor version for ${ref}`);
-            let regex = new RegExp(/^nixos-(?<version>([0-9]+\.[0-9]+)|unstable)$/);
+            let regex = new RegExp(/^nixos-(?<version>([0-9]+\.[0-9]+)(-small)?|unstable)$/);
             let match = regex.exec(ref);
             if (match && match.groups) {
                 const versionPart = match.groups.version;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant