From f4ea6fcdc16a465157959f405fe3ade2a8cfdc6a Mon Sep 17 00:00:00 2001 From: Alexis Williams Date: Tue, 12 Aug 2025 12:14:35 -0700 Subject: [PATCH 1/2] maintainers: add typedrat --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4323b94b5762..6e4d447db7a4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -26198,6 +26198,13 @@ githubId = 3742502; name = "Oscar Molnar"; }; + typedrat = { + name = "Alexis Williams"; + email = "alexis@typedr.at"; + github = "typedrat"; + githubId = 1057789; + matrix = "@typedrat:thisratis.gay"; + }; typetetris = { email = "ericwolf42@mail.com"; github = "typetetris"; From 12312b94c439ed3c97d950a6d69076b84eed1c31 Mon Sep 17 00:00:00 2001 From: Alexis Williams Date: Tue, 12 Aug 2025 12:15:26 -0700 Subject: [PATCH 2/2] github-to-sops: init at 2.0.0 --- pkgs/by-name/gi/github-to-sops/package.nix | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/gi/github-to-sops/package.nix diff --git a/pkgs/by-name/gi/github-to-sops/package.nix b/pkgs/by-name/gi/github-to-sops/package.nix new file mode 100644 index 000000000000..a347a655f61e --- /dev/null +++ b/pkgs/by-name/gi/github-to-sops/package.nix @@ -0,0 +1,50 @@ +{ + lib, + fetchFromGitHub, + fetchpatch2, + python3Packages, + sops, + versionCheckHook, + nix-update-script, +}: +python3Packages.buildPythonApplication rec { + pname = "github-to-sops"; + version = "2.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tarasglek"; + repo = "github-to-sops"; + tag = "v${version}"; + hash = "sha256-HwJay5GaEWhXBsRijSgxX+FMKX7wIwssDVoekPKJ67M="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = [ + sops + ]; + + patches = [ + (fetchpatch2 { + name = "use-compliant-license-schema.patch"; + url = "https://github.com/tarasglek/github-to-sops/commit/798c864f1537f668fbaf7802651ec8beb998a7af.patch?full_index=1"; + hash = "sha256-udBO5dN8RCclXpkTj/gU6zcUcaoM+G9jPEw4dCZ+oT4="; + }) + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Tool for managing infrastructure secrets in git repositories using SOPS and GitHub SSH keys"; + homepage = "https://github.com/tarasglek/github-to-sops"; + license = lib.licenses.mit; + mainProgram = "github-to-sops"; + maintainers = with lib.maintainers; [ typedrat ]; + }; +}