TaskBot/.forgejo/script/taskbot.nix
Rahix 3722d09b06
All checks were successful
/ build (push) Successful in 5s
ci: Add test deployment here
2026-03-02 12:19:39 +01:00

36 lines
934 B
Nix

let
# Tracking nixpkgs/nixos-25.11 as of 2026-03-02.
nixpkgsSrc = fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/1267bb4920d0fc06ea916734c11b0bf004bbe17e.tar.gz";
sha256 = "sha256:0sjac485rc346hpj5dvidh3lqdlq5lp7y7glicibgxqizrb90dpc";
};
# Tracking TaskBot main as of 2026-03-02.
taskbotSrc = fetchTarball {
url = "https://git.fa-fo.de/rahix/TaskBot/archive/0978ed7b5e86589728d538f0fe72e1a86018b0a5.tar.gz";
sha256 = "sha256:0x9bw0vbhl8x83jik40qv4ylvp29dl2ixzrkn3l43f5hym5fqjca";
};
in with import nixpkgsSrc {}; let
taskbot = pkgs.rustPlatform.buildRustPackage (f: {
pname = "taskbot";
version = "main";
src = taskbotSrc;
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
openssl
];
cargoLock.lockFile = "${taskbotSrc}/Cargo.lock";
});
in pkgs.mkShell {
name = "taskbot";
buildInputs = [
taskbot
];
}