alejandra: 0.1.0 -> 0.2.0

This commit is contained in:
Kevin Amado 2022-02-17 02:10:32 -05:00
parent 9777760699
commit 82cf11aece
No known key found for this signature in database
GPG key ID: FFF341057F503148

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