3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/cargo-asm/default.nix

29 lines
837 B
Nix
Raw Normal View History

{ 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";
version = "2019-12-24";
2018-08-01 14:03:03 +01:00
src = fetchFromGitHub {
owner = "gnzlbg";
repo = "cargo-asm";
rev = "577f890ebd4a09c8265710261e976fe7bfce8668";
sha256 = "1f6kzsmxgdms9lq5z9ynnmxymk9k2lzlp3caa52wqjvdw1grw0rb";
2018-08-01 14:03:03 +01:00
};
cargoSha256 = "0d797cisiydblh64vqpfdjf37wmxrvs77phdrqh582lbrvnfhx2j";
2018-08-01 14:03:03 +01: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";
2018-08-01 14:03:03 +01:00
license = licenses.mit;
maintainers = [ maintainers.danieldk ];
};
}