Merge pull request #302384 from cafkafk/init-cargo-unfmt

cargo-unfmt: init at 0.3.3

authored by Aleksana and committed by GitHub f876cc41 80cafa6a

+34
+34
pkgs/by-name/ca/cargo-unfmt/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , rustPlatform 5 + , darwin 6 + , libiconv 7 + }: 8 + 9 + rustPlatform.buildRustPackage { 10 + pname = "cargo-unfmt"; 11 + version = "0.3.3"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "fprasx"; 15 + repo = "cargo-unfmt"; 16 + rev = "0f4882f65d248e32812e0e854fa11d7db60921e7"; 17 + hash = "sha256-nvn4nZkkNQQvzShwoxtFqHeyhXQPm2GJoTKBI+MkFgM="; 18 + }; 19 + 20 + cargoHash = "sha256-mMeHTYCUIZR3jVvTxfyH4I9wGfUdCWcyn9djnksAY8k="; 21 + 22 + buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ]; 23 + 24 + # Doc tests are broken on 0.3.3 25 + doCheck = false; 26 + 27 + meta = with lib; { 28 + description = "Unformat code into perfect rectangles"; 29 + homepage = "https://github.com/fprasx/cargo-unfmt"; 30 + license = licenses.gpl3Plus; 31 + mainProgram = "cargo-unfmt"; 32 + maintainers = with maintainers; [ cafkafk ]; 33 + }; 34 + }