-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
selfci: init at 0-unstable-2026-01-17 #481172
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/Cargo.toml b/Cargo.toml | ||
| index 8f7a1e2..e2062c4 100644 | ||
| --- a/Cargo.toml | ||
| +++ b/Cargo.toml | ||
| @@ -10,7 +10,7 @@ readme = "README.md" | ||
| keywords = ["ci"] | ||
| categories = ["development-tools"] | ||
| authors = ["dpc <dpc@dpc.pw>"] | ||
| -rust-version = "1.92" | ||
| +rust-version = "1.91" | ||
|
|
||
| [[bin]] | ||
| name = "selfci" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| lib, | ||
| fetchgit, | ||
| nix-update-script, | ||
| rustPlatform, | ||
| git, | ||
| makeWrapper, | ||
| }: | ||
|
|
||
| rustPlatform.buildRustPackage (finalAttrs: { | ||
| pname = "selfci"; | ||
| version = "0-unstable-2026-01-17"; | ||
|
|
||
| src = fetchgit { | ||
| url = "https://radicle.dpc.pw/z2tDzYbAXxTQEKTGFVwiJPajkbeDU.git"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How important realistically this host becomes? It's a $5 Hetzner VPS, but if it ever has issues, I will not be breaking NixOS, right? :D
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh, if it goes down then it will simply break the package build. I don't really understand how radicle works, but is it possible to pull it from another "node" if your VPS were to go down?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there any plans to add to Nixpkgs a
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
While the radicle is p2p and the source code is redundantly stored in the network, the git link here is just a wrapper exposing git interface running on my $5 VPS. So when my VPS is down the link won't work. One would need to use radicle itself BTW. I thought NixOS / hydra / something was actually caching all the building sources so once this builds all NixOS users would be covered effectively forever, right? Just curious. I think that VPS easily has 99.9% uptime anyway.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why aren't there more of these "wrappers" among the nodes seeding the repo though? Is that just not how it works?
That would be nice to see merged.
I'm not sure what the details are regarding caching, but regardless the VPS will need to be up on successive version bumps, of course.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Well, git uses centralized URL, but what your comment made me realize, that any public node can serve the same URL, the same way my does. So e.g. So my instance is: But here is a public node hosted by Radicle team: will show in "Clone -> Git": I suspect their node might be a bit more capable and taken care of. And it seems
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The solution would be to have a I also believe we need an issue to track the subject of content addressing vs location addressing with Nix fetchers |
||
| rev = "83e693dada851ce0da32713869d3da02c52ed257"; | ||
| hash = "sha256-f0BfHvIQnhhiPie3a+9MeEGzZ+/KcgrbKBneu8Jo+xs="; | ||
| }; | ||
|
|
||
| cargoHash = "sha256-Z3f35HIZiNeKeDNFPUVkFvL2OpMWzqRvxOL5/hUEzJw="; | ||
|
|
||
| nativeBuildInputs = [ | ||
| makeWrapper | ||
| ]; | ||
|
|
||
| patches = [ | ||
| ./Cargo.toml.patch | ||
| ]; | ||
|
|
||
| doCheck = false; | ||
|
|
||
| postInstall = '' | ||
| wrapProgram "$out"/bin/selfci \ | ||
| --prefix PATH : ${lib.makeBinPath [ git ]} | ||
| ''; | ||
|
|
||
| passthru.updateScript = nix-update-script { }; | ||
|
|
||
| meta = { | ||
| description = "Minimalistic local-first Unix-philosophy-abiding CI"; | ||
| homepage = "https://app.radicle.xyz/nodes/radicle.dpc.pw/rad%3Az2tDzYbAXxTQEKTGFVwiJPajkbeDU"; | ||
| license = lib.licenses.mpl20; | ||
| maintainers = with lib.maintainers; [ | ||
| dvn0 | ||
| ]; | ||
| mainProgram = "selfci"; | ||
| }; | ||
| }) | ||
Uh oh!
There was an error while loading. Please reload this page.