Merge pull request #197468 from oxalica/pkg/cargo-show-asm

cargo-show-asm: 0.1.24 -> 0.2.0
This commit is contained in:
figsoda 2022-10-23 23:01:08 -04:00 committed by GitHub
commit 3d13fe2b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,43 +1,29 @@
{ lib
, rustPlatform
, fetchFromGitHub
, curl
, installShellFiles
, pkg-config
, openssl
, stdenv
, darwin
, nix-update-script
, callPackage
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-asm";
version = "0.1.24";
version = "0.2.0";
src = fetchFromGitHub {
owner = "pacak";
repo = "cargo-show-asm";
rev = version;
hash = "sha256-ahkKUtg5M88qddzEwYxPecDtBofGfPVxKuYKgmsbWYc=";
hash = "sha256-qsr28zuvu+i7P/MpwhDKQFFXTyFFo+vWrjBrpD1V8PY=";
};
cargoHash = "sha256-S7OpHNjiTfQg7aPmHEx6Q/OV5QA9pB29F3MTIeiLAXg=";
cargoHash = "sha256-IL+BB08uZr5fm05ITxpm66jTb+pYYlLKOwQ8uf5rKSs=";
nativeBuildInputs = [
curl.dev
installShellFiles
pkg-config
];
buildInputs = [
curl
openssl
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreFoundation
SystemConfiguration
]);
postInstall = ''
installShellCompletion --cmd cargo-asm \
--bash <($out/bin/cargo-asm --bpaf-complete-style-bash) \