nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 23 lines 681 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 depsSha256 = "1nnb2lpzjf6hv1a7cw3cbkc22fb54rsp6h87wzmqi4hsy1csff7a"; 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}