Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 60 lines 1.3 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 rustPlatform, 6 pkg-config, 7 cmake, 8 openssl, 9 autoconf, 10 automake, 11 unstableGitUpdater, 12 sqlite, 13}: 14 15rustPlatform.buildRustPackage rec { 16 pname = "hebbot"; 17 version = "2.1-unstable-2024-09-20"; 18 19 src = fetchFromGitHub { 20 owner = "haecker-felix"; 21 repo = "hebbot"; 22 rev = "4c7152a3ce88ecfbac06f823abd4fd849e0c30d1"; 23 hash = "sha256-y+KpxiEzVAggFoPvTOy0IEmAo2V6mOpM0VzEScUOtsM="; 24 }; 25 26 cargoHash = "sha256-xRTl6Z6sn44yaEIFxG2vVKlbruDmOS2CdPZeVmWYOoA="; 27 28 nativeBuildInputs = [ 29 pkg-config 30 cmake 31 ] 32 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 33 autoconf 34 automake 35 ]; 36 37 buildInputs = [ 38 openssl 39 ]; 40 41 env = { 42 OPENSSL_NO_VENDOR = 1; 43 }; 44 45 NIX_CFLAGS_LINK = [ 46 "-L${lib.getLib openssl}/lib" 47 "-L${lib.getLib sqlite}/lib" 48 ]; 49 50 passthru.updateScript = unstableGitUpdater { }; 51 52 meta = { 53 description = "Matrix bot which can generate \"This Week in X\" like blog posts "; 54 homepage = "https://github.com/haecker-felix/hebbot"; 55 changelog = "https://github.com/haecker-felix/hebbot/releases/tag/v${version}"; 56 license = with lib.licenses; [ agpl3Only ]; 57 mainProgram = "hebbot"; 58 maintainers = with lib.maintainers; [ a-kenji ]; 59 }; 60}