git.iko.soy/typeable/nixpkgs
on master help sign in
cargo-binutils: init at 0.3.3
commita299826a27d7c059f06fdbc80fccf27cb025eeab authorJustus K <justus.k@protonmail.com> dateTue 19 Jan 2021, 10:55 (6 years ago) parent1a6b1c5
3 files changed+449
pkgs/development/tools/rust/cargo-binutils/Cargo.lock+419 pkgs/development/tools/rust/cargo-binutils/default.nix+29 pkgs/top-level/all-packages.nix+1
pkgs/development/tools/rust/cargo-binutils/Cargo.locknew file+419
@@ -0,0 +1,419 @@
1+# This file is automatically @generated by Cargo.
2+# It is not intended for manual editing.
3+[[package]]
4+name = "addr2line"
5+version = "0.14.1"
6+source = "registry+https://github.com/rust-lang/crates.io-index"
7+checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7"
8+dependencies = [
9+ "gimli",
10+]
11+
12+[[package]]
13+name = "adler"
14+version = "0.2.3"
15+source = "registry+https://github.com/rust-lang/crates.io-index"
16+checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e"
17+
18+[[package]]
19+name = "aho-corasick"
20+version = "0.7.15"
21+source = "registry+https://github.com/rust-lang/crates.io-index"
22+checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5"
23+dependencies = [
24+ "memchr",
25+]
26+
27+[[package]]
28+name = "ansi_term"
29+version = "0.11.0"
30+source = "registry+https://github.com/rust-lang/crates.io-index"
31+checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
32+dependencies = [
33+ "winapi",
34+]
35+
36+[[package]]
37+name = "anyhow"
38+version = "1.0.37"
39+source = "registry+https://github.com/rust-lang/crates.io-index"
40+checksum = "ee67c11feeac938fae061b232e38e0b6d94f97a9df10e6271319325ac4c56a86"
41+
42+[[package]]
43+name = "atty"
44+version = "0.2.14"
45+source = "registry+https://github.com/rust-lang/crates.io-index"
46+checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
47+dependencies = [
48+ "hermit-abi",
49+ "libc",
50+ "winapi",
51+]
52+
53+[[package]]
54+name = "autocfg"
55+version = "1.0.1"
56+source = "registry+https://github.com/rust-lang/crates.io-index"
57+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
58+
59+[[package]]
60+name = "backtrace"
61+version = "0.3.55"
62+source = "registry+https://github.com/rust-lang/crates.io-index"
63+checksum = "ef5140344c85b01f9bbb4d4b7288a8aa4b3287ccef913a14bcc78a1063623598"
64+dependencies = [
65+ "addr2line",
66+ "cfg-if",
67+ "libc",
68+ "miniz_oxide",
69+ "object",
70+ "rustc-demangle",
71+]
72+
73+[[package]]
74+name = "bitflags"
75+version = "1.2.1"
76+source = "registry+https://github.com/rust-lang/crates.io-index"
77+checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
78+
79+[[package]]
80+name = "cargo-binutils"
81+version = "0.3.3"
82+dependencies = [
83+ "anyhow",
84+ "cargo_metadata",
85+ "clap",
86+ "regex",
87+ "rustc-cfg",
88+ "rustc-demangle",
89+ "rustc_version",
90+ "serde",
91+ "toml",
92+]
93+
94+[[package]]
95+name = "cargo_metadata"
96+version = "0.11.4"
97+source = "registry+https://github.com/rust-lang/crates.io-index"
98+checksum = "a3a567c24b86754d629addc2db89e340ac9398d07b5875efcff837e3878e17ec"
99+dependencies = [
100+ "semver 0.10.0",
101+ "serde",
102+ "serde_json",
103+]
104+
105+[[package]]
106+name = "cfg-if"
107+version = "1.0.0"
108+source = "registry+https://github.com/rust-lang/crates.io-index"
109+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
110+
111+[[package]]
112+name = "clap"
113+version = "2.33.3"
114+source = "registry+https://github.com/rust-lang/crates.io-index"
115+checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
116+dependencies = [
117+ "ansi_term",
118+ "atty",
119+ "bitflags",
120+ "strsim",
121+ "textwrap",
122+ "unicode-width",
123+ "vec_map",
124+]
125+
126+[[package]]
127+name = "failure"
128+version = "0.1.8"
129+source = "registry+https://github.com/rust-lang/crates.io-index"
130+checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
131+dependencies = [
132+ "backtrace",
133+ "failure_derive",
134+]
135+
136+[[package]]
137+name = "failure_derive"
138+version = "0.1.8"
139+source = "registry+https://github.com/rust-lang/crates.io-index"
140+checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
141+dependencies = [
142+ "proc-macro2",
143+ "quote",
144+ "syn",
145+ "synstructure",
146+]
147+
148+[[package]]
149+name = "gimli"
150+version = "0.23.0"
151+source = "registry+https://github.com/rust-lang/crates.io-index"
152+checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
153+
154+[[package]]
155+name = "hermit-abi"
156+version = "0.1.17"
157+source = "registry+https://github.com/rust-lang/crates.io-index"
158+checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8"
159+dependencies = [
160+ "libc",
161+]
162+
163+[[package]]
164+name = "itoa"
165+version = "0.4.7"
166+source = "registry+https://github.com/rust-lang/crates.io-index"
167+checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
168+
169+[[package]]
170+name = "lazy_static"
171+version = "1.4.0"
172+source = "registry+https://github.com/rust-lang/crates.io-index"
173+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
174+
175+[[package]]
176+name = "libc"
177+version = "0.2.81"
178+source = "registry+https://github.com/rust-lang/crates.io-index"
179+checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
180+
181+[[package]]
182+name = "memchr"
183+version = "2.3.4"
184+source = "registry+https://github.com/rust-lang/crates.io-index"
185+checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
186+
187+[[package]]
188+name = "miniz_oxide"
189+version = "0.4.3"
190+source = "registry+https://github.com/rust-lang/crates.io-index"
191+checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d"
192+dependencies = [
193+ "adler",
194+ "autocfg",
195+]
196+
197+[[package]]
198+name = "object"
199+version = "0.22.0"
200+source = "registry+https://github.com/rust-lang/crates.io-index"
201+checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397"
202+
203+[[package]]
204+name = "proc-macro2"
205+version = "1.0.24"
206+source = "registry+https://github.com/rust-lang/crates.io-index"
207+checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
208+dependencies = [
209+ "unicode-xid",
210+]
211+
212+[[package]]
213+name = "quote"
214+version = "1.0.8"
215+source = "registry+https://github.com/rust-lang/crates.io-index"
216+checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df"
217+dependencies = [
218+ "proc-macro2",
219+]
220+
221+[[package]]
222+name = "regex"
223+version = "1.4.2"
224+source = "registry+https://github.com/rust-lang/crates.io-index"
225+checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c"
226+dependencies = [
227+ "aho-corasick",
228+ "memchr",
229+ "regex-syntax",
230+ "thread_local",
231+]
232+
233+[[package]]
234+name = "regex-syntax"
235+version = "0.6.21"
236+source = "registry+https://github.com/rust-lang/crates.io-index"
237+checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189"
238+
239+[[package]]
240+name = "rustc-cfg"
241+version = "0.4.0"
242+source = "registry+https://github.com/rust-lang/crates.io-index"
243+checksum = "8ad221fe7cd09334f8735dcc157b1178e343f43dfaefcd1b09d7fd4fc0921b6f"
244+dependencies = [
245+ "failure",
246+]
247+
248+[[package]]
249+name = "rustc-demangle"
250+version = "0.1.18"
251+source = "registry+https://github.com/rust-lang/crates.io-index"
252+checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232"
253+
254+[[package]]
255+name = "rustc_version"
256+version = "0.2.3"
257+source = "registry+https://github.com/rust-lang/crates.io-index"
258+checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
259+dependencies = [
260+ "semver 0.9.0",
261+]
262+
263+[[package]]
264+name = "ryu"
265+version = "1.0.5"
266+source = "registry+https://github.com/rust-lang/crates.io-index"
267+checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
268+
269+[[package]]
270+name = "semver"
271+version = "0.9.0"
272+source = "registry+https://github.com/rust-lang/crates.io-index"
273+checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
274+dependencies = [
275+ "semver-parser",
276+]
277+
278+[[package]]
279+name = "semver"
280+version = "0.10.0"
281+source = "registry+https://github.com/rust-lang/crates.io-index"
282+checksum = "394cec28fa623e00903caf7ba4fa6fb9a0e260280bb8cdbbba029611108a0190"
283+dependencies = [
284+ "semver-parser",
285+ "serde",
286+]
287+
288+[[package]]
289+name = "semver-parser"
290+version = "0.7.0"
291+source = "registry+https://github.com/rust-lang/crates.io-index"
292+checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
293+
294+[[package]]
295+name = "serde"
296+version = "1.0.118"
297+source = "registry+https://github.com/rust-lang/crates.io-index"
298+checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800"
299+dependencies = [
300+ "serde_derive",
301+]
302+
303+[[package]]
304+name = "serde_derive"
305+version = "1.0.118"
306+source = "registry+https://github.com/rust-lang/crates.io-index"
307+checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df"
308+dependencies = [
309+ "proc-macro2",
310+ "quote",
311+ "syn",
312+]
313+
314+[[package]]
315+name = "serde_json"
316+version = "1.0.61"
317+source = "registry+https://github.com/rust-lang/crates.io-index"
318+checksum = "4fceb2595057b6891a4ee808f70054bd2d12f0e97f1cbb78689b59f676df325a"
319+dependencies = [
320+ "itoa",
321+ "ryu",
322+ "serde",
323+]
324+
325+[[package]]
326+name = "strsim"
327+version = "0.8.0"
328+source = "registry+https://github.com/rust-lang/crates.io-index"
329+checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
330+
331+[[package]]
332+name = "syn"
333+version = "1.0.57"
334+source = "registry+https://github.com/rust-lang/crates.io-index"
335+checksum = "4211ce9909eb971f111059df92c45640aad50a619cf55cd76476be803c4c68e6"
336+dependencies = [
337+ "proc-macro2",
338+ "quote",
339+ "unicode-xid",
340+]
341+
342+[[package]]
343+name = "synstructure"
344+version = "0.12.4"
345+source = "registry+https://github.com/rust-lang/crates.io-index"
346+checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
347+dependencies = [
348+ "proc-macro2",
349+ "quote",
350+ "syn",
351+ "unicode-xid",
352+]
353+
354+[[package]]
355+name = "textwrap"
356+version = "0.11.0"
357+source = "registry+https://github.com/rust-lang/crates.io-index"
358+checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
359+dependencies = [
360+ "unicode-width",
361+]
362+
363+[[package]]
364+name = "thread_local"
365+version = "1.0.1"
366+source = "registry+https://github.com/rust-lang/crates.io-index"
367+checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
368+dependencies = [
369+ "lazy_static",
370+]
371+
372+[[package]]
373+name = "toml"
374+version = "0.5.8"
375+source = "registry+https://github.com/rust-lang/crates.io-index"
376+checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa"
377+dependencies = [
378+ "serde",
379+]
380+
381+[[package]]
382+name = "unicode-width"
383+version = "0.1.8"
384+source = "registry+https://github.com/rust-lang/crates.io-index"
385+checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
386+
387+[[package]]
388+name = "unicode-xid"
389+version = "0.2.1"
390+source = "registry+https://github.com/rust-lang/crates.io-index"
391+checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
392+
393+[[package]]
394+name = "vec_map"
395+version = "0.8.2"
396+source = "registry+https://github.com/rust-lang/crates.io-index"
397+checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
398+
399+[[package]]
400+name = "winapi"
401+version = "0.3.9"
402+source = "registry+https://github.com/rust-lang/crates.io-index"
403+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
404+dependencies = [
405+ "winapi-i686-pc-windows-gnu",
406+ "winapi-x86_64-pc-windows-gnu",
407+]
408+
409+[[package]]
410+name = "winapi-i686-pc-windows-gnu"
411+version = "0.4.0"
412+source = "registry+https://github.com/rust-lang/crates.io-index"
413+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
414+
415+[[package]]
416+name = "winapi-x86_64-pc-windows-gnu"
417+version = "0.4.0"
418+source = "registry+https://github.com/rust-lang/crates.io-index"
419+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
pkgs/development/tools/rust/cargo-binutils/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, lib, fetchFromGitHub, rustPlatform, runCommand }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-binutils";
5+ version = "0.3.3";
6+
7+ # Upstream doesn't commit `Cargo.lock`, see https://github.com/rust-embedded/cargo-binutils/pull/99
8+ src = let
9+ repo = fetchFromGitHub {
10+ owner = "rust-embedded";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "sha256-Dgn+f4aSsDSh+RC8yvt3ydkdtwib5jEVsnZkod5c7Vo=";
14+ };
15+ in runCommand "source" { } ''
16+ cp -R ${repo} $out
17+ chmod -R +w $out
18+ cp ${./Cargo.lock} $out/Cargo.lock
19+ '';
20+
21+ cargoSha256 = "sha256-Zrl269PacPi81TrGTIDzmVndgGY5i5lYyspiOj43rpw=";
22+
23+ meta = with lib; {
24+ description = "Cargo subcommands to invoke the LLVM tools shipped with the Rust toolchain";
25+ homepage = "https://github.com/rust-embedded/cargo-binutils";
26+ license = with licenses; [ asl20 mit ];
27+ maintainers = with maintainers; [ stupremee ];
28+ };
29+}
pkgs/top-level/all-packages.nix+1
@@ -10261,6 +10261,7 @@ in
1026110261 cargo-asm = callPackage ../development/tools/rust/cargo-asm {
1026210262 inherit (darwin.apple_sdk.frameworks) Security;
1026310263 };
10264+ cargo-binutils = callPackage ../development/tools/rust/cargo-binutils { };
1026410265 cargo-bloat = callPackage ../development/tools/rust/cargo-bloat { };
1026510266 cargo-cache = callPackage ../development/tools/rust/cargo-cache {
1026610267 inherit (darwin.apple_sdk.frameworks) Security;