2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2022-02-20 05:27:41 +00:00
|
|
|
, alejandra
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "alejandra";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "3.0.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kamadorueda";
|
|
|
|
repo = "alejandra";
|
2022-02-20 05:27:41 +00:00
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-tF8E9mnvkTXoViVss9cNjpU4UkEsARp4RtlxKWq55hc=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
2022-04-27 09:35:20 +00:00
|
|
|
version = testers.testVersion { package = alejandra; };
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Uncompromising Nix Code Formatter";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/kamadorueda/alejandra";
|
2022-03-10 19:12:11 +00:00
|
|
|
changelog = "https://github.com/kamadorueda/alejandra/blob/${version}/CHANGELOG.md";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.unlicense;
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F kamadorueda sciencentistguy ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "alejandra";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|