python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / keyscope / default.nix
blob08c2ded80ad849935b72f1351875c0c8c8a392b9
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , stdenv
7 , DiskArbitration
8 , Foundation
9 , IOKit
10 , Security
13 rustPlatform.buildRustPackage rec {
14   pname = "keyscope";
15   version = "1.2.3";
17   src = fetchFromGitHub {
18     owner = "spectralops";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "sha256-RKeEumj9HuifEXE8g5G7EsIalGD1vLRawh59s/ykUmg=";
22   };
24   cargoSha256 = "sha256-8lTwczuOgPhzwGcQ2KoqK5Zf3HS3uwsok036l+12Xb0=";
26   nativeBuildInputs = [ pkg-config ];
28   buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
29     DiskArbitration
30     Foundation
31     IOKit
32     Security
33   ];
35   # build script tries to get information from git
36   postPatch = ''
37     echo "fn main() {}" > build.rs
38   '';
40   VERGEN_GIT_SEMVER = "v${version}";
42   meta = with lib; {
43     description = "A key and secret workflow (validation, invalidation, etc.) tool";
44     homepage = "https://github.com/spectralops/keyscope";
45     changelog = "https://github.com/spectralops/keyscope/blob/v${version}/CHANGELOG.md";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ figsoda ];
48   };