Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 23 lines 682 B view raw
1{ stdenv, fetchFromGitHub, rustPlatform }: 2 3rustPlatform.buildRustPackage rec { 4 name = "rustfmt-${version}"; 5 version = "0.9.0"; 6 7 src = fetchFromGitHub { 8 owner = "rust-lang-nursery"; 9 repo = "rustfmt"; 10 rev = "${version}"; 11 sha256 = "12l3ff0s0pzhcf5jbs8wqawjk4jghhhz8j6dq1n5201yvny12jlr"; 12 }; 13 14 cargoSha256 = "0gppki9mgx99xipapg36ydwk1bplygnz6sbyzbg46vhn10iggfwm"; 15 16 meta = with stdenv.lib; { 17 description = "A tool for formatting Rust code according to style guidelines"; 18 homepage = https://github.com/rust-lang-nursery/rustfmt; 19 license = with licenses; [ mit asl20 ]; 20 maintainers = [ maintainers.globin ]; 21 platforms = platforms.all; 22 }; 23}