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
801 B
Nix
Raw Normal View History

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";
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; {
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
};
}