2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-27 16:15:05 +00:00
nixpkgs/pkgs/tools/nix/alejandra/default.nix
Jamie Quigley d6ed6a2b8b
alejandra: 2.0.0 -> 3.0.0
Also add self as maintainer
2022-08-16 14:31:58 +01:00

33 lines
821 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, testers
, alejandra
}:
rustPlatform.buildRustPackage rec {
pname = "alejandra";
version = "3.0.0";
src = fetchFromGitHub {
owner = "kamadorueda";
repo = "alejandra";
rev = version;
sha256 = "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=";
};
cargoSha256 = "sha256-tF8E9mnvkTXoViVss9cNjpU4UkEsARp4RtlxKWq55hc=";
passthru.tests = {
version = testers.testVersion { package = alejandra; };
};
meta = with lib; {
description = "The Uncompromising Nix Code Formatter";
homepage = "https://github.com/kamadorueda/alejandra";
changelog = "https://github.com/kamadorueda/alejandra/blob/${version}/CHANGELOG.md";
license = licenses.unlicense;
maintainers = with maintainers; [ _0x4A6F kamadorueda sciencentistguy ];
};
}