From dbc26271c2791fd0d01e38c8112a2e7d8330165b Mon Sep 17 00:00:00 2001 From: Alice Carroll Date: Tue, 2 Apr 2024 08:09:32 +0300 Subject: [PATCH 1/2] maintainers: add caralice --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 9891026580b9..8c50bdc8b904 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3134,6 +3134,16 @@ github = "CaptainJawZ"; githubId = 43111068; }; + caralice = { + name = "Alice Carroll"; + email = "nix@alice-carroll.pet"; + github = "thecaralice"; + githubId = 43097806; + keys = [ + { fingerprint = "C7EA B182 2AB1 246C 0FB8 DD72 0514 0B67 902C D3AF"; } + { fingerprint = "DA77 EDDB 4AF5 244C 665E 9176 A05E A86A 5834 1AA8"; } + ]; + }; CardboardTurkey = { name = "Kiran Ostrolenk"; email = "kiran@ostrolenk.co.uk"; From abe7e6ea0342454ce79a3edf8f267d618910cc6b Mon Sep 17 00:00:00 2001 From: Alice Carroll Date: Tue, 2 Apr 2024 08:14:30 +0300 Subject: [PATCH 2/2] srgn: init at 0.12.0 --- pkgs/by-name/sr/srgn/package.nix | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/sr/srgn/package.nix diff --git a/pkgs/by-name/sr/srgn/package.nix b/pkgs/by-name/sr/srgn/package.nix new file mode 100644 index 000000000000..39a16c5d372c --- /dev/null +++ b/pkgs/by-name/sr/srgn/package.nix @@ -0,0 +1,36 @@ +{ rustPlatform +, fetchFromGitHub +, installShellFiles +, lib +}: +rustPlatform.buildRustPackage rec { + pname = "srgn"; + version = "0.12.0"; + + src = fetchFromGitHub { + owner = "alexpovel"; + repo = "srgn"; + rev = "${pname}-v${version}"; + hash = "sha256-d53aSo1gzINC8WdMzjCHzU/8+9kvrrGglV4WsiCt+rM="; + }; + + cargoHash = "sha256-jy7KHcdkI+T8GbT6gH9ppJhQvhv/NPe+jRWKuybtQC4="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + for shell in bash zsh fish; do + installShellCompletion --cmd srgn "--$shell" <("$out/bin/srgn" --completions "$shell") + done + ''; + + meta = with lib; { + description = "A code surgeon for precise text and code transplantation"; + license = licenses.mit; + maintainers = with maintainers; [ caralice ]; + mainProgram = "srgn"; + homepage = "https://github.com/${src.owner}/${src.repo}/"; + downloadPage = "https://github.com/${src.owner}/${src.repo}/releases/tag/${src.rev}"; + changelog = "https://github.com/${src.owner}/${src.repo}/blob/${src.rev}/CHANGELOG.md"; + }; +}