summary refs log tree commit diff
path: root/pkgs/tools/nix
diff options
context:
space:
mode:
author0x4A6F <0x4A6F@users.noreply.github.com>2022-01-30 11:14:07 +0100
committer0x4A6F <0x4A6F@users.noreply.github.com>2022-01-30 19:21:56 +0100
commit6239d0a67cf13bc52d4f16bbe355715af6065e76 (patch)
treeb9318c12eb82c131fe8d146aea09515adf31e33d /pkgs/tools/nix
parentda9cb9757e6871fd706cef77df6b2279f917c237 (diff)
downloadnixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar.gz
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar.bz2
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar.lz
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar.xz
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.tar.zst
nixpkgs-6239d0a67cf13bc52d4f16bbe355715af6065e76.zip
alejandra: init at unstable 2022-01-30
Diffstat (limited to 'pkgs/tools/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 ];
+  };
+}