blob: 17103bae50a62df0c04eddda711b1981e6dca387 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-asm";
version = "0.1.17";
src = fetchFromGitHub {
owner = "gnzlbg";
repo = "cargo-asm";
rev = "7f69a17e9c36dfe1f0d7080d7974c72ecc87a145";
sha256 = "0zn5p95hsmhvk2slc9hakrpvim6l4zbpgkks2x64ndwyfmzyykws";
};
cargoSha256 = "1k9mc29y4487ssf5whvr8xig7j4jh0rpcrhclp6siw8xamygijdm";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
# Test checks against machine code output, which fails with some
# LLVM/compiler versions.
doCheck = false;
meta = with stdenv.lib; {
description = "Display the assembly or LLVM-IR generated for Rust source code";
homepage = https://github.com/gnzlbg/cargo-asm;
license = licenses.mit;
maintainers = [ maintainers.danieldk ];
platforms = platforms.all;
};
}
|