parent
f1f0fea114
commit
af99de75da
1 changed files with 1346 additions and 41 deletions
30
linux/nix/build_env.nix
Normal file
30
linux/nix/build_env.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, lib }:
|
||||
# What building Nexus needs, shared by the dev shell and the e2e tests
|
||||
{
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
stdenv.cc
|
||||
go
|
||||
git
|
||||
|
||||
libGL
|
||||
(flutter.override {
|
||||
extraPkgConfigPackages = [
|
||||
mpv-unwrapped
|
||||
libass
|
||||
];
|
||||
})
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.isLinux [
|
||||
wayland
|
||||
# nativeapi includes XInput2.h, which needs these, but xi.pc only lists them privately
|
||||
libxext
|
||||
libxfixes
|
||||
(callPackage ./pkg/hook_pkg_config.nix { })
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
LD_LIBRARY_PATH = "./build/native_assets/linux:${lib.makeLibraryPath [ pkgs.zlib ]}";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue