Unverified Commit 6e98610c authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #270001 from h7x4/pkgs-update-cyme

cyme: 1.5.2 -> 1.6.0, add version test
parents 130183a8 cc390604
Loading
Loading
Loading
Loading
+1139 −0

File added.

Preview size limit exceeded, changes collapsed.

+17 −4
Original line number Diff line number Diff line
@@ -8,20 +8,28 @@
, libusb1
, udev
, nix-update-script
, testers
, cyme
}:

rustPlatform.buildRustPackage rec {
  pname = "cyme";
  version = "1.5.2";
  version = "1.6.0";

  src = fetchFromGitHub {
    owner = "tuna-f1sh";
    repo = "cyme";
    rev = "v${version}";
    hash = "sha256-Y5TcRcbqarcKRDWCI36YhbLJFU+yrpAE3vRGArbfr0U=";
    hash = "sha256-97sxK2zhUKBS238F9mNk8a2VbTVpvbDlN1yDas4Fls4=";
  };

  cargoHash = "sha256-ycFNNTZ7AU4WRnf1+RJB7KxQKVdJbubB28tS/GyU0bI=";
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "libudev-sys-0.1.4" = "sha256-7dUqPH8bQ/QSBIppxQbymwQ44Bvi1b6N2AMUylbyKK8=";
      "libusb1-sys-0.6.4" = "sha256-Y3K3aEZnpLud/g4Tx+1HDEkNRKi5s4Fo0QSWya/L+L4=";
    };
  };

  nativeBuildInputs = [
    pkg-config
@@ -40,7 +48,12 @@ rustPlatform.buildRustPackage rec {
    "--skip=test_run"
  ];

  passthru.updateScript = nix-update-script { };
  passthru = {
    updateScript = nix-update-script { };
    tests.version = testers.testVersion {
      package = cyme;
    };
  };

  meta = with lib; {
    homepage = "https://github.com/tuna-f1sh/cyme";