summary refs log tree commit diff
path: root/pkgs/tools/nix/alejandra/default.nix
blob: c24de3947f6dfdd5feaced1b7dd881e331b3440d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
  pname = "alejandra";
  version = "unstable-2022-01-30";

  src = fetchFromGitHub {
    owner = "kamadorueda";
    repo = "alejandra";
    rev = "b72274b052ae06cbe60a97d623829b1458369cc2";
    sha256 = "sha256-snq9C/a/53VivFcLNvdeKwVmPBXbcVzbbjTB+iULFUc=";
  };

  cargoSha256 = "sha256-/JzATzRhNexmyjtgjHVkw8LVyr4PdIdPJfUGXz4pZbQ=";

  meta = with lib; {
    description = "The uncompromising Nix formatter";
    homepage = "https://github.com/kamadorueda/alejandra";
    license = licenses.unlicense;
    maintainers = with maintainers; [ _0x4A6F ];
  };
}