lol
at 24.11-pre 48 lines 957 B view raw
1{ lib 2, stdenv 3, darwin 4, fetchFromGitHub 5, openssl 6, pkg-config 7, postgresql 8, rustPlatform 9, zstd 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "kepler"; 14 version = "unstable-2023-07-19"; 15 16 src = fetchFromGitHub { 17 owner = "Exein-io"; 18 repo = "kepler"; 19 rev = "9f4f9c617f2477850ed70f1b1d7387807c35d26c"; 20 hash = "sha256-jmQ88flSMrS0CB7GNj1Ee60HZgroDKTwLk0i/kg6gVM="; 21 }; 22 23 cargoHash = "sha256-+WLb4DsAW6tnO0KdtD9zMnYCEb1t0onZqFhnqhbIStU="; 24 25 nativeBuildInputs = [ 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 openssl 31 postgresql 32 zstd 33 ] ++ lib.optionals stdenv.isDarwin [ 34 darwin.apple_sdk.frameworks.Security 35 ]; 36 37 env = { 38 ZSTD_SYS_USE_PKG_CONFIG = true; 39 }; 40 41 meta = with lib; { 42 description = "NIST-based CVE lookup store and API powered by Rust"; 43 homepage = "https://github.com/Exein-io/kepler"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ fab ]; 46 mainProgram = "kepler"; 47 }; 48}