at 23.11-beta 1.1 kB view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, fetchpatch 6, pkg-config 7, openssl 8, Security 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "replibyte"; 13 version = "0.9.7"; 14 15 src = fetchFromGitHub { 16 owner = "Qovery"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "02bdz0464d6gbkgbvn67sgn6cc6p6pjqacblh8nimy0r8b13x2ki"; 20 }; 21 22 # Lockfile was updated in a commit after the release 23 cargoPatches = [ 24 (fetchpatch { 25 url = "https://github.com/Qovery/Replibyte/commit/15f122cc83fff03ae410be705779ab964fa7b375.patch"; 26 sha256 = "sha256-v95V4pl/2WN2do2SLVTJIO+5J7esqhC2BZaGBEtDhe0="; 27 }) 28 ]; 29 30 cargoSha256 = "sha256-Y9CXpJTY/uszAVAbafa2+FumWKWFGaOLhK1FY+Nc+EU="; 31 32 nativeBuildInputs = [ pkg-config ]; 33 34 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; 35 36 cargoBuildFlags = [ "--all-features" ]; 37 38 doCheck = false; # requires multiple dbs to be installed 39 40 meta = with lib; { 41 description = "Seed your development database with real data"; 42 homepage = "https://github.com/Qovery/replibyte"; 43 license = licenses.gpl3Only; 44 maintainers = with maintainers; [ dit7ya ]; 45 }; 46}