summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2026-01-19 01:07:16 +0000
committerGitHub <noreply@github.com>2026-01-19 01:07:16 +0000
commitb47158fe038513db45d6421ba052ee0da2dd4c22 (patch)
treed97d90cc926df4b84d04c4f8998654c84832cf4b
parent1b695976124d486ae275f53eb6d72aec2e736147 (diff)
parent971ad07fe76347255f028f8fb4cb3c124b2f8f35 (diff)
selfci: init at 0-unstable-2026-01-17 (#481172)
-rw-r--r--pkgs/by-name/se/selfci/Cargo.toml.patch13
-rw-r--r--pkgs/by-name/se/selfci/package.nix48
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/by-name/se/selfci/Cargo.toml.patch b/pkgs/by-name/se/selfci/Cargo.toml.patch
new file mode 100644
index 000000000000..ab385872ce7a
--- /dev/null
+++ b/pkgs/by-name/se/selfci/Cargo.toml.patch
@@ -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"
diff --git a/pkgs/by-name/se/selfci/package.nix b/pkgs/by-name/se/selfci/package.nix
new file mode 100644
index 000000000000..a5c4f3d33b83
--- /dev/null
+++ b/pkgs/by-name/se/selfci/package.nix
@@ -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";
+ 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";
+ };
+})