-
Notifications
You must be signed in to change notification settings - Fork 0
/
ats-dev.nix
37 lines (31 loc) · 1.03 KB
/
ats-dev.nix
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
34
35
36
# A nix file (nixos.org) to load the necessary software for doing work with
# ATS2 and ATS Contrib from their source repositories.
# NOTE: based on file of the same name by Brandon Barker
#
# 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;
packages_ats1 = pkgs.callPackage /home/artyom/proj/nix/nixpkgs/pkgs/development/compilers/ats/default.nix { };
patshome = "$HOME/proj/ATS-Postiats";
patshomereloc = "$HOME/proj/ATS-Postiats-contrib";
in rec {
ATSDevEnv = stdenv.mkDerivation rec {
name = "atsdev-env";
buildInputs = with pkgs; [ packages_ats1 gmp ];
shellHook = ''
export ATSHOME=${packages_ats1}/lib/ats-anairiats-0.2.12
export ATSHOMERELOC=ATS-0.2.12
export PATSHOME=${patshome}
export PATSHOMERELOC=${patshomereloc}
'';
};
}