Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srgn: init at 0.10.2 #293076

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions pkgs/by-name/sr/srgn/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "srgn";
# the latest versioned release has broken unit tests, so we use the latest commit instead
Copy link

@alexpovel alexpovel May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We fixed this is alexpovel/srgn#66 , so this wouldn't be necessary anymore, I believe!

version = "0.10.2-unstable-2024-02-04";

src = fetchFromGitHub {
owner = "alexpovel";
repo = "srgn";
rev = "9df9fe772df140c2cd0f3c8311c1e12c210838de";
hash = "sha256-qUkuE0Tws7pl0Hd9Dsi6+V74ErCv+BwdvTdCbvAjgIc=";
};

cargoHash = "sha256-B0epxhyPoImoclQRQHVgKPxnEdb8ER2mjJgse7FtgqU=";

meta = with lib; {
description = "A code surgeon for precise text and code transplantation.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "A code surgeon for precise text and code transplantation.";
description = "A code surgeon for precise text and code transplantation";

homepage = "https://github.com/alexpovel/srgn";
license = licenses.mit;
maintainers = with maintainers; [ binarycat ];
mainProgram = "srgn";
};
}