added nix package build
Some checks failed
build / docker (push) Has been cancelled

This commit is contained in:
2026-01-16 21:53:32 -05:00
parent 7a1b74fe22
commit 52dd1edb66

View File

@@ -61,5 +61,39 @@
}; };
}; };
}); });
packages = forEachSupportedSystem ({ pkgs }: {
default = let
pname = "caitsith";
version = "master";
src = pkgs.fetchFromGitea {
domain = "scm.wyattjmiller.com";
owner = "wymiller";
repo = "caitsith";
rev = "${version}";
sha256 = "sha256-bNIzb57qPzzgwGVTjk2N59P7Rtt0MdyJY12sTAH05/s=";
};
in pkgs.rustPlatform.buildRustPackage {
inherit pname version src;
cargoLock = { lockFile = "${src}/Cargo.lock"; };
nativeBuildInputs = with pkgs; [
pkg-config-unwrapped
openssl.dev
];
meta = {
description = "A Discord bot that deathrolls";
mainProgram = "caitsith";
homepage = "https://scm.wyattjmiller.com/wymiller/caitsith";
maintainers = [ "wymillerlinux" ];
platforms = [ "x86_64-linux" ];
};
env = {
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
};
};
});
}; };
} }