From 387c633a0c95dd9b71c6b5e4421e336d4ecd3695 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Mar 2020 13:00:58 +0000 Subject: [PATCH] Add nix-shell file This isn't perfect as the compiled .so files use a mixture of /usr/lib and /nix/store paths. It'd be nice if we could figure out how to make them use /usr/lib paths only, such that it can be used to build the natives for other distributions. However, even though it isn't suitable for building releases, it does allow us to test changes to the natives on NixOS. --- shell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..178170c --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +{ pkgs ? import {} }: + +( + pkgs.buildFHSUserEnv { + name = "openrs2-natives"; + targetPkgs = pkgs: ( + with pkgs; [ + gcc + jdk8 + libGL.dev + maven + xorg.libX11.dev + xorg.libXt.dev + xorg.xorgproto + ] + ); + } +).env