diff options
author | Kevin Cox <kevincox@kevincox.ca> | 2017-08-05 15:38:48 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2017-10-23 00:30:47 +0100 |
commit | 5f8cf0048ea089fa73d17512fc4f9f0f0644e225 (patch) | |
tree | 7a9bfc449fab89da9af7b012d4b55ea809eb102d /pkgs/tools/text | |
parent | d170c2ceadde34a1ee4844fe59d876351331b707 (diff) | |
download | nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar.gz nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar.bz2 nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar.lz nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar.xz nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.tar.zst nixlib-5f8cf0048ea089fa73d17512fc4f9f0f0644e225.zip |
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>
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/ripgrep/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/text/staccato/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/text/xsv/default.nix | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/text/ripgrep/default.nix b/pkgs/tools/text/ripgrep/default.nix index 8ddfa7d7be46..0d1c60dc6948 100644 --- a/pkgs/tools/text/ripgrep/default.nix +++ b/pkgs/tools/text/ripgrep/default.nix @@ -13,7 +13,7 @@ buildRustPackage rec { sha256 = "1cnvwxbznmsn1gand8hhy5zadax5p67lvm46fkj1a1s89f158w3a"; }; - depsSha256 = "1kx9xazhj93xa3cnys39wwr84qqjqrlsbbi5ih71vxppskdpvd6m"; + cargoSha256 = "00y2vdnrg02clqin9pg57s9micrp66f6y49wq89cmykrfg3r8cwf"; preFixup = '' mkdir -p "$out/man/man1" diff --git a/pkgs/tools/text/staccato/default.nix b/pkgs/tools/text/staccato/default.nix index 34e1413150f2..973585abc81f 100644 --- a/pkgs/tools/text/staccato/default.nix +++ b/pkgs/tools/text/staccato/default.nix @@ -11,9 +11,10 @@ rustPlatform.buildRustPackage rec { sha256 = "1zbd1gx0ik2r7bavcid776j37g6rzd3f6cs94kq1qar4gyf1gqjm"; }; - depsSha256 = "1gwfkh3ck8n3zcy43ch2mnc28a6y10p3srhnx9dh8gwnwbpb733c"; + cargoSha256 = "074mfyanwdykg6wci2ia63wcnnyik741g8n624pac215sg4i95h7"; meta = { + broken = true; description = "A command line program that lets you compute statistics from values from a file or standard input"; longDescription = '' Staccato (`st` for short) is a command line program that lets you diff --git a/pkgs/tools/text/xsv/default.nix b/pkgs/tools/text/xsv/default.nix index db84eac4a237..23f172f4ebe1 100644 --- a/pkgs/tools/text/xsv/default.nix +++ b/pkgs/tools/text/xsv/default.nix @@ -13,7 +13,7 @@ buildRustPackage rec { sha256 = "0z1z3b6nzaid510jaikkawvpmv4kjphzz84p0hppq6vcp5jy00s2"; }; - depsSha256 = "13hy835871zxdnakwsr4bjm4krahlz4aqk5lh0rw78avfla89q9q"; + cargoSha256 = "0pdzh2xr40dgwravh3i58g602bpszj6c8inggzgmq2kfk8ck6rgj"; meta = with stdenv.lib; { description = "A fast CSV toolkit written in Rust"; |