2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2018-08-01 13:03:03 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "cargo-asm";
|
2020-03-06 16:59:43 +00:00
|
|
|
version = "2019-12-24";
|
2018-08-01 13:03:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnzlbg";
|
|
|
|
repo = "cargo-asm";
|
2020-03-06 16:59:43 +00:00
|
|
|
rev = "577f890ebd4a09c8265710261e976fe7bfce8668";
|
|
|
|
sha256 = "1f6kzsmxgdms9lq5z9ynnmxymk9k2lzlp3caa52wqjvdw1grw0rb";
|
2018-08-01 13:03:03 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1c22aal3i7zbyxr2c41fimfx13fwp9anmhh641951yd7cqb8xij2";
|
2018-08-01 13:03:03 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2018-11-03 07:47:18 +00:00
|
|
|
|
2018-08-01 13:03:03 +00:00
|
|
|
# Test checks against machine code output, which fails with some
|
|
|
|
# LLVM/compiler versions.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-01 13:03:03 +00:00
|
|
|
description = "Display the assembly or LLVM-IR generated for Rust source code";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gnzlbg/cargo-asm";
|
2018-08-01 13:03:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.danieldk ];
|
|
|
|
};
|
|
|
|
}
|