2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-02-20 05:27:41 +00:00
|
|
|
, testVersion
|
|
|
|
, alejandra
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "alejandra";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "0.3.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kamadorueda";
|
|
|
|
repo = "alejandra";
|
2022-02-20 05:27:41 +00:00
|
|
|
rev = version;
|
2022-02-21 08:47:16 +00:00
|
|
|
sha256 = "sha256-IQ+hv/R6uRPEPr7+SRXyYol4/cQo1ZqcqJxy26CpOoY=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
cargoSha256 = "sha256-PIqdjtqbSVQoxLj5jGSbrzRQ3qddZvp1Y7tIuFs7UEg=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testVersion { package = alejandra; };
|
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "The Uncompromising Nix Code Formatter";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/kamadorueda/alejandra";
|
|
|
|
license = licenses.unlicense;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F kamadorueda ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|