summary refs log tree commit diff
path: root/pkgs/tools/nix/alejandra/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/nix/alejandra/default.nix')
-rw-r--r--pkgs/tools/nix/alejandra/default.nix25
1 files changed, 25 insertions, 0 deletions
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 ];
+  };
+}