Merge pull request #160432 from kamadorueda/update-alejandra-nixpkgs

alejandra: 0.1.0 -> 0.2.0
This commit is contained in:
0x4A6F 2022-02-17 08:51:45 +01:00 committed by GitHub
commit f1edce07dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,22 @@
{ lib
, rustPlatform
, fetchFromGitHub
, testVersion
, alejandra
}:
rustPlatform.buildRustPackage rec {
pname = "alejandra";
version = "0.1.0";
version = "0.2.0";
src = fetchFromGitHub {
owner = "kamadorueda";
repo = "alejandra";
rev = version;
hash = "sha256-jj66PRqXASDNzdidkdfF2ezWM45Pw9Z+G4YNe8HRPhU=";
sha256 = "sha256-bM+z3s7oG0+8P7TVmyw7NW3eavN109zgsw9exUSQCaQ=";
};
cargoSha256 = "sha256-701lWa/2u10vCSRplL1ebYz29DxjpHY0SqjSWme1X1U=";
cargoSha256 = "sha256-GxQxyUyrDKTf+7cye0Ob/le06GnAI+FMGCUB5dts+k0=";
meta = with lib; {
description = "The Uncompromising Nix Code Formatter";
@ -22,4 +24,8 @@ rustPlatform.buildRustPackage rec {
license = licenses.unlicense;
maintainers = with maintainers; [ _0x4A6F kamadorueda ];
};
passthru.tests = {
version = testVersion { package = alejandra; };
};
}