Unverified Commit 39e27f3c authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #218105 from marsam/update-kbs2

kbs2: 0.6.0 -> 0.7.1
parents 6e4263b4 fa50f575
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb, AppKit, libiconv }:
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, python3
, libxcb
, AppKit
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
  pname = "kbs2";
  version = "0.6.0";
  version = "0.7.1";

  src = fetchFromGitHub {
    owner = "woodruffw";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-clbd4xHHGpFIr4s3Jocw4oQ3GbyGWMxZEVgj6JpVK94=";
    hash = "sha256-lTxHG+Gul9yMdNPXiomP6crzF5J4wIKzeNyEHnlNM/4=";
  };

  cargoSha256 = "sha256-gfrC9TOs/Vz3K1gVr6MJ1QAKCE5WOD8VZ/tjOw3Y1uI=";
  cargoHash = "sha256-X5WlEvOmbZ3STogoFjDhT2zF5Udt6ABaD+f1qBvmNYE=";

  nativeBuildInputs = [ installShellFiles ]
    ++ lib.optionals stdenv.isLinux [ python3 ];

  buildInputs = [ ]
    ++ lib.optionals stdenv.isLinux [ libxcb ]
    ++ lib.optionals stdenv.isDarwin [ AppKit libiconv ];
    ++ lib.optionals stdenv.isDarwin [ SystemConfiguration AppKit ];

  preCheck = ''
    export HOME=$TMPDIR
+1 −1
Original line number Diff line number Diff line
@@ -8782,7 +8782,7 @@ with pkgs;
  kbdd = callPackage ../applications/window-managers/kbdd { };
  kbs2 = callPackage ../tools/security/kbs2 {
    inherit (darwin.apple_sdk.frameworks) AppKit;
    inherit (darwin.apple_sdk.frameworks) AppKit SystemConfiguration;
  };
  kdash = callPackage ../development/tools/kdash {