iocaine/nix/iocaine.nix
Gergely Nagy aa4c387605
Some checks are pending
build / binary (push) Waiting to run
build / binary-static (push) Waiting to run
build / container (push) Waiting to run
build / clippy (push) Waiting to run
lint / linting (push) Waiting to run
Add a number of tests
These are quite... simple, and cover little, but it's more than nothing!

While there, enable tests in the Nix package, so they're run in CI too.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-30 09:18:35 +01:00

31 lines
692 B
Nix

# SPDX-FileCopyrightText: 2025 Gergely Nagy
# SPDX-FileContributor: Gergely Nagy
#
# SPDX-License-Identifier: MIT
{
lib,
pkgs,
}:
let
props = builtins.fromTOML (builtins.readFile ../Cargo.toml);
inherit (props.package) version;
in
pkgs.rustPlatform.buildRustPackage {
pname = "iocaine";
inherit version;
src = builtins.path {
name = "iocaine";
path = lib.cleanSource ../.;
};
cargoLock = {
lockFile = ../Cargo.lock;
};
meta = with lib; {
description = "The deadliest poison known to AI";
license = licenses.mit;
platforms = platforms.linux;
homepage = "https://git.madhouse-project.org/algernon/iocaine";
mainProgram = "iocaine";
};
}