nixpkgs/pkgs/tools/nix/alejandra/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
805 B
Nix
Raw Normal View History

2022-01-30 11:14:07 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, 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";
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 = {
version = testers.testVersion { package = alejandra; };
2022-02-19 00:40:19 +01:00
};
2022-01-30 11:14:07 +01:00
meta = with lib; {
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;
maintainers = with maintainers; [ _0x4A6F kamadorueda ];
2022-01-30 11:14:07 +01:00
};
}