They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
rustPlatform,
|
|
pkg-config,
|
|
cmake,
|
|
openssl,
|
|
autoconf,
|
|
automake,
|
|
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=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-xRTl6Z6sn44yaEIFxG2vVKlbruDmOS2CdPZeVmWYOoA=";
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
pkg-config
|
|
cmake
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
autoconf
|
|
automake
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|