2021-03-23 13:02:47 +00:00
|
|
|
{ sources, system }:
|
2020-11-28 14:45:58 +00:00
|
|
|
let
|
2021-03-23 13:02:47 +00:00
|
|
|
pkgz = import sources.nixpkgs { inherit system; overlays = [ sources.rustOverlay.overlay ]; };
|
|
|
|
rust = (pkgz.rust-bin.fromRustupToolchainFile ../rust-toolchain).override {
|
|
|
|
extensions = [ "rust-src" ];
|
2020-11-28 14:45:58 +00:00
|
|
|
};
|
2020-12-02 11:48:14 +00:00
|
|
|
|
2021-03-23 13:02:47 +00:00
|
|
|
pkgs = import sources.nixpkgs {
|
2020-11-28 14:45:58 +00:00
|
|
|
inherit system;
|
|
|
|
overlays = [
|
2020-11-30 00:48:00 +00:00
|
|
|
(final: prev: {
|
2021-03-23 13:02:47 +00:00
|
|
|
rustc = rust;
|
|
|
|
})
|
|
|
|
(final: prev: {
|
|
|
|
naersk = prev.callPackage sources.naersk { };
|
2020-11-28 14:45:58 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2020-12-02 20:29:55 +00:00
|
|
|
in
|
|
|
|
with pkgs;
|
2020-12-11 20:42:08 +00:00
|
|
|
{
|
|
|
|
inherit pkgs;
|
2020-11-30 00:48:00 +00:00
|
|
|
# deps that crates need (for compiling)
|
2020-12-11 15:00:16 +00:00
|
|
|
crateDeps =
|
|
|
|
{
|
2021-03-23 13:02:47 +00:00
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
|
|
|
buildInputs = [ libudev alsaLib openssl xorg.libxcb ];
|
2020-11-30 00:48:00 +00:00
|
|
|
};
|
|
|
|
# deps that voxygen needs to function
|
2020-12-02 20:29:55 +00:00
|
|
|
# FIXME: Wayland doesn't work (adding libxkbcommon, wayland and wayland-protocols results in a panic)
|
2020-11-30 00:48:00 +00:00
|
|
|
voxygenNeededLibs = (with xorg; [ libX11 libXcursor libXrandr libXi ])
|
|
|
|
++ [ libGL ];
|
|
|
|
gitLfsCheckFile = ../assets/voxygen/background/bg_main.png;
|
2020-12-11 12:00:04 +00:00
|
|
|
}
|