Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 28 lines 804 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-asm"; 5 version = "2019-12-24"; 6 7 src = fetchFromGitHub { 8 owner = "gnzlbg"; 9 repo = "cargo-asm"; 10 rev = "577f890ebd4a09c8265710261e976fe7bfce8668"; 11 sha256 = "1f6kzsmxgdms9lq5z9ynnmxymk9k2lzlp3caa52wqjvdw1grw0rb"; 12 }; 13 14 cargoHash = "sha256-QsaOFman+VBSIAbCalW63I3QXY0uECZy9+ufOKhSQrA="; 15 16 buildInputs = lib.optional stdenv.isDarwin Security; 17 18 # Test checks against machine code output, which fails with some 19 # LLVM/compiler versions. 20 doCheck = false; 21 22 meta = with lib; { 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; 26 maintainers = [ ]; 27 }; 28}