Unverified Commit ad2781b7 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

keyscope: 1.3.0 -> 1.4.0 (#371261)

parents 6df2f2ea af7ff9f2
Loading
Loading
Loading
Loading
+18 −24
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  gitUpdater,
  openssl,
  stdenv,
  DiskArbitration,
  Foundation,
  IOKit,
  Security,
  pkg-config,
  rustPlatform,
}:

rustPlatform.buildRustPackage rec {
  pname = "keyscope";
  version = "1.3.0";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "spectralops";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-SrBtgirg52q7gM3GZsJsV8ASACvb4sYv5HDbyItpjbk=";
    repo = "keyscope";
    tag = "v${version}";
    hash = "sha256-2DhKiQixhTCQD/SYIQa+o1kzEsslu6wAReuWr0rTrH8=";
  };

  cargoHash = "sha256-MFP3AqlfaclmZxRwaWFw6hsZwCQMRKJEyFEyUN+QLqo=";
  cargoHash = "sha256-01Q5qCH0VIdO9dpcZxp8wbSjeON9N2C+0qa/2CvMHrc=";

  nativeBuildInputs = [ pkg-config ];

  buildInputs =
    [ openssl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      DiskArbitration
      Foundation
      IOKit
      Security
    ];
  buildInputs = [ openssl ];

  # build script tries to get information from git
  postPatch = ''
@@ -42,12 +31,17 @@ rustPlatform.buildRustPackage rec {

  VERGEN_GIT_SEMVER = "v${version}";

  meta = with lib; {
  # Test require network access
  doCheck = false;

  passthru.updateScript = gitUpdater { };

  meta = {
    description = "Key and secret workflow (validation, invalidation, etc.) tool";
    mainProgram = "keyscope";
    homepage = "https://github.com/spectralops/keyscope";
    changelog = "https://github.com/spectralops/keyscope/blob/v${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with maintainers; [ figsoda ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ figsoda ];
    mainProgram = "keyscope";
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -3884,10 +3884,6 @@ with pkgs;
  keybase-gui = callPackage ../tools/security/keybase/gui.nix { };
  keyscope = callPackage ../tools/security/keyscope {
    inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit Security;
  };
  keystore-explorer = callPackage ../applications/misc/keystore-explorer {
    jdk = jdk11;
  };