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.
master
Graham 4 years ago
parent 3ce67ce6b6
commit 387c633a0c
  1. 18
      shell.nix

@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> {} }:
(
pkgs.buildFHSUserEnv {
name = "openrs2-natives";
targetPkgs = pkgs: (
with pkgs; [
gcc
jdk8
libGL.dev
maven
xorg.libX11.dev
xorg.libXt.dev
xorg.xorgproto
]
);
}
).env
Loading…
Cancel
Save