2022-01-30 11:14:07 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-02-17 08:10:32 +01:00
|
|
|
, testVersion
|
|
|
|
, alejandra
|
2022-01-30 11:14:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "alejandra";
|
2022-03-04 17:14:54 +01:00
|
|
|
version = "1.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-03-04 17:14:54 +01:00
|
|
|
sha256 = "sha256-fJ/WHSU45bMJRDqz9yA3B2lwXtW5DKooU+Pzn13GyZI=";
|
2022-01-30 11:14:07 +01:00
|
|
|
};
|
|
|
|
|
2022-03-04 17:14:54 +01:00
|
|
|
cargoSha256 = "sha256-mIcTgpWI5iuMH03EsZalmAxjpme+bsIJU7kW9PavHEM=";
|
2022-02-19 00:40:19 +01:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testVersion { package = alejandra; };
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|