From f909e2b781d5dea2867c2920bbfbe31203ab9279 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Mon, 8 Dec 2025 20:53:22 -0500 Subject: [PATCH] optnix: fetch from sr.ht It seems that the tags were deleted from GitHub, so only Sourcehut has tags now. Verification: see https://github.com/water-sucks/optnix?tab=readme-ov-file#install:~:text=This%20repository%20is%20hosted%20on. Then use the link at https://github.com/water-sucks/optnix?tab=readme-ov-file#install:~:text=While%20the%20official%20repository%20is%20located%20on, as the above link is broken. --- pkgs/by-name/op/optnix/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/op/optnix/package.nix b/pkgs/by-name/op/optnix/package.nix index 7a629c3dbb9e..7bb7cd1408a5 100644 --- a/pkgs/by-name/op/optnix/package.nix +++ b/pkgs/by-name/op/optnix/package.nix @@ -1,7 +1,7 @@ { lib, stdenv, - fetchFromGitHub, + fetchFromSourcehut, buildGoModule, installShellFiles, nix-update-script, @@ -10,8 +10,8 @@ buildGoModule (finalAttrs: { pname = "optnix"; version = "0.3.0"; - src = fetchFromGitHub { - owner = "water-sucks"; + src = fetchFromSourcehut { + owner = "~watersucks"; repo = "optnix"; tag = "v${finalAttrs.version}"; hash = "sha256-kPCRCnjuKZd6RE5pkQJMYWpexnMyhUy9jrBFSztkiLM=";