-
Notifications
You must be signed in to change notification settings - Fork 10
/
shell.nix
51 lines (50 loc) · 1.88 KB
/
shell.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#-----------------------------------------------------------------------------------
# d-SEAMS - Deferred Structural Elucidation Analysis for Molecular Simulations
#
# Copyright (c) 2018--present d-SEAMS core team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the MIT License as published by
# the Open Source Initiative.
#
# A copy of the MIT License is included in the LICENSE file of this repository.
# You should have received a copy of the MIT License along with this program.
# If not, see <https://opensource.org/licenses/MIT>.
#-----------------------------------------------------------------------------------
# Define
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
inherit (pkgs.lib) optional optionals;
# Import
buildpkgs = import ./nix { };
doxygen191 = pkgs.doxygen.overrideAttrs (_: rec {
name = "doxygen-1.9.1";
src = pkgs.fetchurl {
urls = [
"mirror://sourceforge/doxygen/${name}.src.tar.gz" # faster, with https, etc.
"http://doxygen.nl/files/${name}.src.tar.gz"
];
sha256 = "1lcif1qi20gf04qyjrx7x367669g17vz2ilgi4cmamp1whdsxbk7";
};
});
in pkgs.mkShell {
# this will make all the build inputs described
# available to the shell environment
inputsFrom = [ buildpkgs.yodaStruct pkgs.git ];
nativeBuildInputs = with pkgs; [ pkgconfig ];
buildInputs = with pkgs;
[ gdb ccache ninja git lua luaPackages.luafilesystem doxygen191 which ] ++ optional stdenv.isLinux
glibcLocales # To allow setting consistent locale on linux
++ optional stdenv.isLinux inotify-tools # For file_system
++ optional stdenv.isLinux libnotify # For ExUnit
;
# Set up environment vars
# We unset TERM b/c of https://github.com/NixOS/nix/issues/1056
shellHook = ''
stty sane
export TERM="xterm-256color"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
'';
}