Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 48 lines 1.1 kB view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, pkg-config 6, openssl 7, Security 8, SystemConfiguration 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "replibyte"; 13 version = "0.10.0"; 14 15 src = fetchFromGitHub { 16 owner = "Qovery"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-VExA92g+1y65skxLKU62ZPUPOwdm9N73Ne9xW7Q0Sic="; 20 }; 21 22 cargoLock = { 23 lockFile = ./Cargo.lock; 24 outputHashes = { 25 "mongodb-schema-parser-0.5.0" = "sha256-P3srDY4bEDDYyic7Am2Cg+75j/kETf0uC7ui61TUJQA="; 26 }; 27 }; 28 29 postPatch = '' 30 cp ${./Cargo.lock} Cargo.lock 31 ''; 32 33 nativeBuildInputs = [ pkg-config ]; 34 35 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; 36 37 cargoBuildFlags = [ "--all-features" ]; 38 39 doCheck = false; # requires multiple dbs to be installed 40 41 meta = with lib; { 42 description = "Seed your development database with real data"; 43 mainProgram = "replibyte"; 44 homepage = "https://github.com/Qovery/replibyte"; 45 license = licenses.gpl3Only; 46 maintainers = with maintainers; [ dit7ya ]; 47 }; 48}