matrix-hebbot: 2.1 -> 2.1-unstable-2024-09-20; fix build (#345296)

This commit is contained in:
h7x4
2024-10-01 21:44:48 +02:00
committed by GitHub
4 changed files with 67 additions and 2830 deletions
+67
View File
@@ -0,0 +1,67 @@
{
lib,
fetchFromGitHub,
stdenv,
rustPlatform,
pkg-config,
cmake,
openssl,
autoconf,
automake,
darwin,
unstableGitUpdater,
sqlite,
}:
rustPlatform.buildRustPackage rec {
pname = "hebbot";
version = "2.1-unstable-2024-09-20";
src = fetchFromGitHub {
owner = "haecker-felix";
repo = "hebbot";
rev = "4c7152a3ce88ecfbac06f823abd4fd849e0c30d1";
hash = "sha256-y+KpxiEzVAggFoPvTOy0IEmAo2V6mOpM0VzEScUOtsM=";
};
cargoHash = "sha256-7AEWQIUHpeK4aNFzzU10YeJErD0fJ6yQSHwFe4utOFo=";
nativeBuildInputs =
[
pkg-config
cmake
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
autoconf
automake
];
buildInputs =
[
openssl
]
++ lib.optional stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
env = {
OPENSSL_NO_VENDOR = 1;
};
NIX_CFLAGS_LINK = [
"-L${lib.getLib openssl}/lib"
"-L${lib.getLib sqlite}/lib"
];
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Matrix bot which can generate \"This Week in X\" like blog posts ";
homepage = "https://github.com/haecker-felix/hebbot";
changelog = "https://github.com/haecker-felix/hebbot/releases/tag/v${version}";
license = with lib.licenses; [ agpl3Only ];
mainProgram = "hebbot";
maintainers = with lib.maintainers; [ a-kenji ];
};
}
File diff suppressed because it is too large Load Diff
-44
View File
@@ -1,44 +0,0 @@
{ lib
, fetchFromGitHub
, stdenv
, rustPlatform
, pkg-config
, cmake
, openssl
, autoconf
, automake
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "hebbot";
version = "2.1";
src = fetchFromGitHub {
owner = "haecker-felix";
repo = "hebbot";
rev = "v${version}";
sha256 = "sha256-zcsoTWpNonkgJLTC8S9Nubnzdhj5ROL/UGNWUsLxLgs=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"matrix-qrcode-0.1.0" = "sha256-g78Ql+r5NYNcnkoirH9E6AHagZgBCgxBfweaX1D0z0E=";
};
};
nativeBuildInputs = [ pkg-config cmake ] ++
lib.optionals stdenv.hostPlatform.isDarwin [ autoconf automake ];
buildInputs = [ openssl ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
meta = with lib; {
description = "Matrix bot which can generate \"This Week in X\" like blog posts ";
homepage = "https://github.com/haecker-felix/hebbot";
changelog = "https://github.com/haecker-felix/hebbot/releases/tag/v${version}";
license = with licenses; [ agpl3Only ];
mainProgram = "hebbot";
maintainers = with maintainers; [ a-kenji ];
};
}
-4
View File
@@ -5215,10 +5215,6 @@ with pkgs;
hebcal = callPackage ../tools/misc/hebcal { };
hebbot = callPackage ../servers/matrix-hebbot {
inherit (darwin.apple_sdk.frameworks) Security;
};
hexio = callPackage ../development/tools/hexio { };
hexyl = callPackage ../tools/misc/hexyl { };