Commit Graph

20 Commits

Author SHA1 Message Date
Kevin Cox
5f8cf0048e rust: update cargo builder to fetch registry dynamically
The biggest benefit is that we no longer have to update the registry
package. This means that just about any cargo package can be built by
nix. No longer does `cargo update` need to be feared because it will
update to packages newer then what is available in nixpkgs.

Instead of fetching the cargo registry this bundles all the source code
into a "vendor/" folder.

This also uses the new --frozen and --locked flags which is nice.

Currently cargo-vendor only provides binaries for Linux and
macOS 64-bit. This can be solved by building it for the other
architectures and uploading it somewhere (like the NixOS cache).

This also has the downside that it requires a change to everyone's deps
hash. And if the old one is used because it was cached it will fail to
build as it will attempt to use the old version. For this reason the
attribute has been renamed to `cargoSha256`.

Authors:
* Kevin Cox <kevincox@kevincox.ca>
* Jörg Thalheim <Mic92@users.noreply.github.com>
* zimbatm <zimbatm@zimbatm.com>
2017-10-23 00:30:47 +01:00
dywedir
72f8ba269c rustfmt: 0.8.3 -> 0.9.0 2017-06-18 13:06:31 +03:00
Matthew Maurer
a8d3cb8c29 rustfmt: 0.8.1 -> 0.8.3
Did not bump to 0.8.4 since that doesn't build with current stable.
2017-05-26 01:33:55 +02:00
c74d
eb6a1f1f41 rustfmt: 0.8 -> 0.8.1
Update the `rustfmt` package from version 0.8 to version 0.8.1.

I have tested this change per nixpkgs manual section 11.1 ("Making
patches").
2017-03-29 22:24:38 +00:00
c74d
5177f891f3 rustfmt: 0.7.1 -> 0.8 2017-03-21 02:11:08 +00:00
Tadas Barzdzius
a2304b0ea3 rustfmt: 0.6.3 -> 0.7.1 2017-01-27 22:07:34 +01:00
Jos van den Oever
bb84c688f6 rustfmt: 0.6.2 -> 0.6.3 2016-12-04 15:56:26 +02:00
Tadas Barzdzius
535f26a9e9 rustfmt: 0.6.0 -> 0.6.2 2016-11-16 13:26:59 +02:00
Matthias Beyer
ae428c6411 rustfmt: 0.4 -> 0.6 2016-08-26 14:17:14 +02:00
Gabriel Ebner
40d5284cc2 rustfmt: add meta.platforms 2016-07-14 12:10:09 +02:00
Tadas Barzdzius
357a251bfb rustfmt: 2016-03-22 -> 0.4.0 2016-04-20 12:43:00 +03:00
Jakob Gillich
02b20eecc2 rustfmt: 2016-02-15 -> 2016-03-22 2016-03-22 17:33:06 +01:00
Arseniy Seroka
a68eae7866 rustfmt: 2015-12-23 -> 2016-02-15 2016-02-25 15:57:18 +03:00
Robin Gloster
37ebb4c2ac rustfmt: 2015-12-08 -> 2015-12-23 2015-12-24 13:20:24 +01:00
Robin Gloster
34e67f558f rustfmt: 2015-10-28 -> 2015-12-08 2015-12-10 16:23:39 +00:00
Ricardo M. Correia
2ede3e6ddd rustfmt: 2015-10-17 -> 2015-10-28
... which also fixes the build.
Also, I've switched the compiler to the stable channel since rustfmt
supports it now.
2015-11-02 15:44:42 +01:00
Ricardo M. Correia
ef8b078ce7 rustfmt: 2015-09-23 -> 2015-10-17
Also convert from fetchgit to fetchFromGitHub.
2015-10-18 04:12:11 +02:00
Robin Gloster
4ed66c9f02 rustfmt: fix build
rustfmt now needs to have llvm in its buildInputs since rust does not bundle it
and rustfmt needs to link to it.
2015-09-24 09:00:55 +00:00
Robin Gloster
760be9cf70 rustfmt: git-2015-09-05 -> git-2015-09-23 2015-09-23 21:16:16 +00:00
Robin Gloster
7a90c8daa8 rustfmt: init at git-2015-09-05 2015-09-07 12:07:00 +00:00