File: default.nix

package info (click to toggle)
lager 0.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,888 kB
  • sloc: cpp: 10,602; javascript: 10,433; makefile: 214; python: 100; sh: 98
file content (42 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (2)
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
    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;
  };
}