feat: need some new inputs to get this to build

This commit is contained in:
silver 2025-06-06 23:59:00 +01:00
parent f1dbbec32d
commit e449204863
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -27,6 +27,8 @@
desc = "Skynet Discord Bot";
buildInputs = with pkgs; [
openssl
glib
gdk-pixbuf
pkg-config
rustfmt
];
@ -37,6 +39,10 @@
pname = "${package_name}";
src = ./.;
buildInputs = buildInputs;
postInstall = ''
mkdir $out/config
cp .server-icons.toml $out/config
'';
};
# Run `nix build .#fmt` to run tests
fmt = naersk'.buildPackage {
@ -63,9 +69,9 @@
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [rustup rustPlatform.bindgenHook pkg-config openssl];
nativeBuildInputs = with pkgs; [rustup rustPlatform.bindgenHook];
# libraries here
buildInputs = [ ];
buildInputs = buildInputs;
RUSTC_VERSION = overrides.toolchain.channel;
# https://github.com/rust-lang/rust-bindgen#environment-variables
shellHook = ''