nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage {
8 pname = "cargo-unfmt";
9 version = "0.3.3";
10
11 src = fetchFromGitHub {
12 owner = "fprasx";
13 repo = "cargo-unfmt";
14 rev = "0f4882f65d248e32812e0e854fa11d7db60921e7";
15 hash = "sha256-nvn4nZkkNQQvzShwoxtFqHeyhXQPm2GJoTKBI+MkFgM=";
16 };
17
18 cargoHash = "sha256-23mroUZFF4tPV92NhPlauGgTwLXsoxtE+Paqj5zsp7Q=";
19
20 # Doc tests are broken on 0.3.3
21 doCheck = false;
22
23 meta = {
24 description = "Unformat code into perfect rectangles";
25 homepage = "https://github.com/fprasx/cargo-unfmt";
26 license = lib.licenses.gpl3Plus;
27 mainProgram = "cargo-unfmt";
28 maintainers = with lib.maintainers; [ cafkafk ];
29 };
30}