Merge pull request #308346 from thecaralice/srgn

srgn: init at 0.12.0
This commit is contained in:
Peder Bergebakken Sundt 2024-06-12 00:30:46 +02:00 committed by GitHub
commit 6f0f235d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View File

@ -3308,6 +3308,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";

View File

@ -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";
};
}