@@ -1,20 +1,22 @@
11{ lib
22, rustPlatform
33, fetchFromGitHub
4+, testVersion
5+, alejandra
46}:
57
68rustPlatform.buildRustPackage rec {
79 pname = "alejandra";
8− version = "0.1.0";
10+ version = "0.2.0";
911
1012 src = fetchFromGitHub {
1113 owner = "kamadorueda";
1214 repo = "alejandra";
1315 rev = version;
14− hash = "sha256-jj66PRqXASDNzdidkdfF2ezWM45Pw9Z+G4YNe8HRPhU=";
16+ sha256 = "sha256-bM+z3s7oG0+8P7TVmyw7NW3eavN109zgsw9exUSQCaQ=";
1517 };
1618
17− cargoSha256 = "sha256-701lWa/2u10vCSRplL1ebYz29DxjpHY0SqjSWme1X1U=";
19+ cargoSha256 = "sha256-GxQxyUyrDKTf+7cye0Ob/le06GnAI+FMGCUB5dts+k0=";
1820
1921 meta = with lib; {
2022 description = "The Uncompromising Nix Code Formatter";
@@ -22,4 +24,8 @@ rustPlatform.buildRustPackage rec {
2224 license = licenses.unlicense;
2325 maintainers = with maintainers; [ _0x4A6F kamadorueda ];
2426 };
27+
28+ passthru.tests = {
29+ version = testVersion { package = alejandra; };
30+ };
2531}