From 7a90c8daa8e224f28e7b680f2a1ec45edc582707 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sat, 5 Sep 2015 16:48:36 +0000 Subject: [PATCH] rustfmt: init at git-2015-09-05 --- pkgs/development/compilers/rustc/head.nix | 2 ++ .../tools/rust/rustfmt/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/rust/rustfmt/default.nix diff --git a/pkgs/development/compilers/rustc/head.nix b/pkgs/development/compilers/rustc/head.nix index 3c3239d2313..3b1cccee941 100644 --- a/pkgs/development/compilers/rustc/head.nix +++ b/pkgs/development/compilers/rustc/head.nix @@ -1,3 +1,5 @@ +# Please make sure to check if rustfmt still builds when updating nightly + { stdenv, callPackage }: callPackage ./generic.nix { shortVersion = "2015-09-05"; diff --git a/pkgs/development/tools/rust/rustfmt/default.nix b/pkgs/development/tools/rust/rustfmt/default.nix new file mode 100644 index 00000000000..1e735611782 --- /dev/null +++ b/pkgs/development/tools/rust/rustfmt/default.nix @@ -0,0 +1,21 @@ +{stdenv, fetchgit, rustUnstable, makeWrapper }: + +with rustUnstable; + +buildRustPackage rec { + name = "rustfmt-git-2015-09-05"; + src = fetchgit { + url = https://github.com/nrc/rustfmt; + rev = "6c5d3500bb805b37865fe961a7054f8435d176fc"; + sha256 = "0y506viir1klzvspi49qawrfd2g12p9ff2fyy1ndba6zixf69a90"; + }; + + depsSha256 = "1kfc9l176qkimaag9p650sfpaz50p263rw2021gq5kjw8cyndlx8"; + + meta = with stdenv.lib; { + description = "A tool for formatting Rust code according to style guidelines"; + homepage = https://github.com/nrc/rustfmt; + license = with licenses; [ mit asl20 ]; + maintainers = [ maintainers.globin ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0a4dbcfc14..90a6d98d7ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4799,6 +4799,8 @@ let buildRustPackage = callPackage ../build-support/rust { }; }; + rustfmt = callPackage ../development/tools/rust/rustfmt { }; + sbclBootstrap = callPackage ../development/compilers/sbcl/bootstrap.nix {}; sbcl = callPackage ../development/compilers/sbcl { clisp = clisp;