Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 41 lines 852 B view raw
1{ lib 2, fetchCrate 3, rustPlatform 4, pkg-config 5, openssl 6, dbus 7, sqlite 8, stdenv 9, darwin 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "leetcode-cli"; 14 version = "0.3.11"; 15 16 src = fetchCrate { 17 inherit pname version; 18 sha256 = "sha256-DHtIhiRPRGuO6Rf1d9f8r0bMOHqAaJleUvYNyPiX6mc="; 19 }; 20 21 cargoSha256 = "sha256-Suk/nQ+JcoD9HO9x1lYp+p4qx0DZ9dt0p5jPz0ZQB+k="; 22 23 nativeBuildInputs = [ 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 openssl 29 dbus 30 sqlite 31 ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 32 33 meta = with lib; { 34 description = "May the code be with you 👻"; 35 longDescription = "Use leetcode.com in command line"; 36 homepage = "https://github.com/clearloop/leetcode-cli"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ congee ]; 39 mainProgram = "leetcode"; 40 }; 41}