2018-11-03 07:47:18 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-08-01 14:03:03 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "cargo-asm";
|
2019-05-05 16:23:41 +01:00
|
|
|
version = "0.1.17";
|
2018-08-01 14:03:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnzlbg";
|
|
|
|
repo = "cargo-asm";
|
2019-05-05 16:23:41 +01:00
|
|
|
rev = "7f69a17e9c36dfe1f0d7080d7974c72ecc87a145";
|
|
|
|
sha256 = "0zn5p95hsmhvk2slc9hakrpvim6l4zbpgkks2x64ndwyfmzyykws";
|
2018-08-01 14:03:03 +01:00
|
|
|
};
|
|
|
|
|
2019-05-05 16:23:41 +01:00
|
|
|
cargoSha256 = "1k9mc29y4487ssf5whvr8xig7j4jh0rpcrhclp6siw8xamygijdm";
|
2018-08-01 14:03:03 +01:00
|
|
|
|
2018-11-03 07:47:18 +00:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2018-08-01 14:03:03 +01:00
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|