-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
default.nix
42 lines (41 loc) · 910 Bytes
/
default.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
with import <nixpkgs> {};
let
deps = import ./nix/deps.nix {};
in
stdenv.mkDerivation rec {
name = "lager-git";
version = "git";
src = builtins.filterSource (path: type:
baseNameOf path != ".git" &&
baseNameOf path != "build" &&
baseNameOf path != "_build" &&
baseNameOf path != "reports" &&
baseNameOf path != "tools")
./.;
buildInputs = [
ncurses
SDL2
SDL2_ttf
];
nativeBuildInputs = [
cmake
gcc7
sass
pkgs.pkg-config or pkgs.pkgconfig
];
cmakeFlags = [
"-Dlager_BUILD_TESTS=OFF"
"-Dlager_BUILD_EXAMPLES=OFF"
];
propagatedBuildInputs = [
boost
deps.cereal
deps.immer
deps.zug
];
meta = {
homepage = "https://github.com/arximboldi/lager";
description = "library for functional interactive c++ programs";
license = lib.licenses.mit;
};
}