-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathflake.nix
41 lines (37 loc) · 924 Bytes
/
flake.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
{
description = "Savi dev environment flake";
outputs = { self, nixpkgs }: {
devShell.x86_64-linux =
with import nixpkgs { system = "x86_64-linux"; };
let
stdenv = clang9Stdenv;
# An FHS environment is the easiest way to use the static LLVM for now
fhsenv = buildFHSUserEnv.override { stdenv = stdenv; } {
name = "savi-fhs";
targetPkgs = pkgs: with pkgs; [
stdenv.cc.libc_dev.dev
clang-tools
crystal
llvm
# used by Crystal
boehmgc.dev
libevent.dev
pcre.dev
# necessary for some build steps
curl util-linux
# dev tooling
lldb
];
};
in
clang9Stdenv.mkDerivation {
name = "savi-env";
buildInputs = with nixpkgs.legacyPackages; [
fhsenv
];
shellHook = ''
savi-fhs
'';
};
};
}