feat: need some new inputs to get this to build
This commit is contained in:
parent
f1dbbec32d
commit
e449204863
1 changed files with 8 additions and 2 deletions
10
flake.nix
10
flake.nix
|
@ -27,6 +27,8 @@
|
||||||
desc = "Skynet Discord Bot";
|
desc = "Skynet Discord Bot";
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
openssl
|
openssl
|
||||||
|
glib
|
||||||
|
gdk-pixbuf
|
||||||
pkg-config
|
pkg-config
|
||||||
rustfmt
|
rustfmt
|
||||||
];
|
];
|
||||||
|
@ -37,6 +39,10 @@
|
||||||
pname = "${package_name}";
|
pname = "${package_name}";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildInputs = buildInputs;
|
buildInputs = buildInputs;
|
||||||
|
postInstall = ''
|
||||||
|
mkdir $out/config
|
||||||
|
cp .server-icons.toml $out/config
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
# Run `nix build .#fmt` to run tests
|
# Run `nix build .#fmt` to run tests
|
||||||
fmt = naersk'.buildPackage {
|
fmt = naersk'.buildPackage {
|
||||||
|
@ -63,9 +69,9 @@
|
||||||
|
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [rustup rustPlatform.bindgenHook pkg-config openssl];
|
nativeBuildInputs = with pkgs; [rustup rustPlatform.bindgenHook];
|
||||||
# libraries here
|
# libraries here
|
||||||
buildInputs = [ ];
|
buildInputs = buildInputs;
|
||||||
RUSTC_VERSION = overrides.toolchain.channel;
|
RUSTC_VERSION = overrides.toolchain.channel;
|
||||||
# https://github.com/rust-lang/rust-bindgen#environment-variables
|
# https://github.com/rust-lang/rust-bindgen#environment-variables
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue