Commit 7034c34f authored by Heitor Augusto's avatar Heitor Augusto
Browse files

komac: 2.2.1 -> 2.5.0

parent 096a5c44
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -7,15 +7,17 @@
, darwin
, testers
, komac
, dbus
, zstd
}:

let
  version = "2.2.1";
  version = "2.5.0";
  src = fetchFromGitHub {
    owner = "russellbanks";
    repo = "Komac";
    rev = "v${version}";
    hash = "sha256-dPX8/JUQ+vugd+M/jIjBf4/sNbac0FVQ0obhyAAGI84=";
    hash = "sha256-X+LZ6D7MTt/0k4hLvk7TVKiL174QDdxwPKu01MyREYw=";
  };
in
rustPlatform.buildRustPackage {
@@ -23,16 +25,25 @@ rustPlatform.buildRustPackage {

  pname = "komac";

  cargoHash = "sha256-CDPN90X3m/9FRLolAVCIcAuajZbB5OAgLcFXq2ICS8g=";
  cargoHash = "sha256-VBfXD1IF6D1z28dzXfKRz3/Hh2KRxcsYRRDV8e/Akww=";

  nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
  nativeBuildInputs = [ pkg-config ];

  buildInputs = lib.optionals stdenv.isLinux [
  buildInputs = [
    dbus
    openssl
    zstd
  ] ++ lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Security
    darwin.apple_sdk.frameworks.SystemConfiguration
  ];

  env = {
    OPENSSL_NO_VENDOR = true;
    YRX_REGENERATE_MODULES_RS = "no";
    ZSTD_SYS_USE_PKG_CONFIG = true;
  };

  passthru.tests.version = testers.testVersion {
    inherit version;