-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathats-dev.nix
More file actions
34 lines (30 loc) · 874 Bytes
/
ats-dev.nix
File metadata and controls
34 lines (30 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# A nix file (nixos.org) to load the necessary software for doing work with
# ATS2 and ATS Contrib from their source repositories.
#
# To use:
# nix-shell ats-dev.nix -A ATSDevEnv
#
# Or see https://nixos.org/wiki/Howto_develop_software_on_nixos
# for explanation and alternative usage.
#
# Some of the buildInputs are strictly speaking, optional
# Feel free to tailor to your needs
#
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
patshome = "$HOME/ATS-Postiats";
patshomereloc = "$HOME/ATS-Postiats-contrib";
in rec {
ATSDevEnv = stdenv.mkDerivation rec {
name = "atsdev-env";
buildInputs = with pkgs; [ ats gmp openjdk gradle perl python];
# Other possibly useful buildInputs:
# [ php ]
shellHook = ''
export ATSHOME=${pkgs.ats}
export PATSHOME=${patshome}
export PATSHOMERELOC=${patshomereloc}
'';
};
}