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

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

34 lines
848 B
Nix
Raw Normal View History

2022-01-30 10:14:07 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, testers
2022-02-17 07:10:32 +00:00
, alejandra
2022-01-30 10:14:07 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "alejandra";
version = "3.0.0";
2022-01-30 10:14:07 +00:00
src = fetchFromGitHub {
owner = "kamadorueda";
repo = "alejandra";
rev = version;
hash = "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=";
2022-01-30 10:14:07 +00:00
};
cargoHash = "sha256-tF8E9mnvkTXoViVss9cNjpU4UkEsARp4RtlxKWq55hc=";
2022-02-18 23:40:19 +00:00
passthru.tests = {
version = testers.testVersion { package = alejandra; };
2022-02-18 23:40:19 +00:00
};
2022-01-30 10:14:07 +00:00
meta = with lib; {
description = "The Uncompromising Nix Code Formatter";
2022-01-30 10:14:07 +00:00
homepage = "https://github.com/kamadorueda/alejandra";
2022-03-04 16:14:54 +00:00
changelog = "https://github.com/kamadorueda/alejandra/blob/${version}/CHANGELOG.md";
2022-01-30 10:14:07 +00:00
license = licenses.unlicense;
maintainers = with maintainers; [ _0x4A6F kamadorueda sciencentistguy ];
2023-08-03 13:32:46 +00:00
mainProgram = "alejandra";
2022-01-30 10:14:07 +00:00
};
}