Unverified Commit 3ba95f71 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #294960 from aaronjheng/replibyte

replibyte: 0.9.7 -> 0.10.0
parents f38cc448 a5583634
Loading
Loading
Loading
Loading
+4205 −0

File added.

Preview size limit exceeded, changes collapsed.

+13 −12
Original line number Diff line number Diff line
@@ -2,36 +2,37 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, openssl
, Security
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
  pname = "replibyte";
  version = "0.9.7";
  version = "0.10.0";

  src = fetchFromGitHub {
    owner = "Qovery";
    repo = pname;
    rev = "v${version}";
    sha256 = "02bdz0464d6gbkgbvn67sgn6cc6p6pjqacblh8nimy0r8b13x2ki";
    hash = "sha256-VExA92g+1y65skxLKU62ZPUPOwdm9N73Ne9xW7Q0Sic=";
  };

  # Lockfile was updated in a commit after the release
  cargoPatches = [
    (fetchpatch {
      url = "https://github.com/Qovery/Replibyte/commit/15f122cc83fff03ae410be705779ab964fa7b375.patch";
      sha256 = "sha256-v95V4pl/2WN2do2SLVTJIO+5J7esqhC2BZaGBEtDhe0=";
    })
  ];
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "mongodb-schema-parser-0.5.0" = "sha256-P3srDY4bEDDYyic7Am2Cg+75j/kETf0uC7ui61TUJQA=";
    };
  };

  cargoSha256 = "sha256-Y9CXpJTY/uszAVAbafa2+FumWKWFGaOLhK1FY+Nc+EU=";
  postPatch = ''
    cp ${./Cargo.lock} Cargo.lock
  '';

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];

  cargoBuildFlags = [ "--all-features" ];

+1 −1
Original line number Diff line number Diff line
@@ -16751,7 +16751,7 @@ with pkgs;
  rasm = callPackage ../development/compilers/rasm { };
  replibyte = callPackage ../development/tools/database/replibyte {
    inherit (darwin.apple_sdk.frameworks) Security;
    inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
  };
  rgbds = callPackage ../development/compilers/rgbds { };