2022-01-30 11:14:07 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-04-20 16:40:48 +02:00
|
|
|
, testers
|
2022-02-17 08:10:32 +01:00
|
|
|
, alejandra
|
2022-01-30 11:14:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "alejandra";
|
2022-07-14 07:52:50 +02:00
|
|
|
version = "2.0.0";
|
2022-01-30 11:14:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kamadorueda";
|
|
|
|
repo = "alejandra";
|
2022-02-15 04:35:25 +01:00
|
|
|
rev = version;
|
2022-07-14 07:52:50 +02:00
|
|
|
sha256 = "sha256-imWi48JxT7l/1toc7NElP1/CBEbChTQ3n0gjBz6L7so=";
|
2022-01-30 11:14:07 +01:00
|
|
|
};
|
|
|
|
|
2022-07-14 07:52:50 +02:00
|
|
|
cargoSha256 = "sha256-pcNU7Wk98LQuRg/ItsJ+dxXcSdYROJVYifF74jIrqEo=";
|
2022-02-19 00:40:19 +01:00
|
|
|
|
|
|
|
passthru.tests = {
|
2022-04-20 16:40:48 +02:00
|
|
|
version = testers.testVersion { package = alejandra; };
|
2022-02-19 00:40:19 +01:00
|
|
|
};
|
2022-01-30 11:14:07 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-10 07:01:26 +01:00
|
|
|
description = "The Uncompromising Nix Code Formatter";
|
2022-01-30 11:14:07 +01:00
|
|
|
homepage = "https://github.com/kamadorueda/alejandra";
|
2022-03-04 17:14:54 +01:00
|
|
|
changelog = "https://github.com/kamadorueda/alejandra/blob/${version}/CHANGELOG.md";
|
2022-01-30 11:14:07 +01:00
|
|
|
license = licenses.unlicense;
|
2022-02-10 07:01:26 +01:00
|
|
|
maintainers = with maintainers; [ _0x4A6F kamadorueda ];
|
2022-01-30 11:14:07 +01:00
|
|
|
};
|
|
|
|
}
|