From 6239d0a67cf13bc52d4f16bbe355715af6065e76 Mon Sep 17 00:00:00 2001 From: 0x4A6F <0x4A6F@users.noreply.github.com> Date: Sun, 30 Jan 2022 11:14:07 +0100 Subject: alejandra: init at unstable 2022-01-30 --- pkgs/tools/nix/alejandra/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/tools/nix/alejandra/default.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/nix/alejandra/default.nix b/pkgs/tools/nix/alejandra/default.nix new file mode 100644 index 00000000000..c24de3947f6 --- /dev/null +++ b/pkgs/tools/nix/alejandra/default.nix @@ -0,0 +1,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 ]; + }; +} -- cgit 1.4.1