1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
3 rustPlatform.buildRustPackage rec {
5 version = "2019-12-24";
7 src = fetchFromGitHub {
10 rev = "577f890ebd4a09c8265710261e976fe7bfce8668";
11 sha256 = "1f6kzsmxgdms9lq5z9ynnmxymk9k2lzlp3caa52wqjvdw1grw0rb";
14 cargoSha256 = "1c22aal3i7zbyxr2c41fimfx13fwp9anmhh641951yd7cqb8xij2";
16 buildInputs = lib.optional stdenv.isDarwin Security;
18 # Test checks against machine code output, which fails with some
19 # LLVM/compiler versions.
23 description = "Display the assembly or LLVM-IR generated for Rust source code";
24 homepage = "https://github.com/gnzlbg/cargo-asm";
25 license = licenses.mit;