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-03-30 09:31:56 +00:00
|
|
|
version = "1.1.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;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-vkFKYnSmhPPXtc3AH7iRtqRRqxhj0o5WySqPT+klDWU=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "sha256-MsXaanznE4UtZMj54EDq86aJ2t4xT8O5ziTpa/KCwBw=";
|
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";
|
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-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F kamadorueda ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|