Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 31 lines 737 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchCrate 5, pkg-config 6, openssl 7, darwin 8}: 9rustPlatform.buildRustPackage rec { 10 pname = "sea-orm-cli"; 11 version = "0.12.2"; 12 13 src = fetchCrate { 14 inherit pname version; 15 hash = "sha256-mg0PkWxlfwo4eAtbU1ZOphEUBB1P6VsSpODyJZhvwQs="; 16 }; 17 18 nativeBuildInputs = [ pkg-config ]; 19 20 buildInputs = [ openssl ] 21 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; 22 23 cargoHash = "sha256-6LXJtY844CyR6H0/IkEJrpSj4UNWcpO/XoTzUthcTUc="; 24 25 meta = with lib; { 26 homepage = "https://sea-ql.org/SeaORM"; 27 description = " Command line utility for SeaORM"; 28 license = with licenses; [ mit /* or */ asl20 ]; 29 maintainers = with maintainers; [ traxys ]; 30 }; 31}