Merge pull request #157380 from 0x4A6F/master-alejandra

This commit is contained in:
Ben Siraphob 2022-01-31 02:44:54 +00:00 committed by GitHub
commit eafa519fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

@ -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 ];
};
}

@ -33422,6 +33422,8 @@ with pkgs;
nix-simple-deploy = callPackage ../tools/package-management/nix-simple-deploy { };
alejandra = callPackage ../tools/nix/alejandra { };
nixfmt = haskell.lib.compose.justStaticExecutables haskellPackages.nixfmt;
nixpkgs-fmt = callPackage ../tools/nix/nixpkgs-fmt { };