depot/third_party/nixpkgs/pkgs/development/tools/rcodesign/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
1.3 KiB
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "rcodesign";
version = "0.22.0";
src = fetchFromGitHub {
owner = "indygreg";
repo = "apple-platform-rs";
rev = "apple-codesign/${version}";
hash = "sha256-ndbDBGtTOfHHUquKrETe4a+hB5Za9samlnXwVGVvWy4=";
};
cargoHash = "sha256-cpQBdxTw/ge4VtzjdL2a2xgSeCT22fMIjuKu5UEedhI=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.Security
];
cargoBuildFlags = [
# Only build the binary we want
"--bin"
"rcodesign"
];
checkFlags = [
# Does network IO
"--skip=ticket_lookup::test::lookup_ticket"
];
meta = with lib; {
description = "Cross-platform CLI interface to interact with Apple code signing";
mainProgram = "rcodesign";
longDescription = ''
rcodesign provides various commands to interact with Apple signing,
including signing and notarizing binaries, generating signing
certificates, and verifying existing signed binaries.
For more information, refer to the [documentation](https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html).
'';
homepage = "https://github.com/indygreg/apple-platform-rs";
license = licenses.mpl20;
maintainers = with maintainers; [ euank ];
};
}