summary refs log tree commit diff
path: root/pkgs/development/libraries/loki/default.nix
blob: d89df53907befc661ff211d483a3185055a5b0df (plain) (blame)
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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "loki";
  version = "0.1.7";

  src = fetchurl {
    url = "mirror://sourceforge/loki-lib/Loki/Loki%20${version}/loki-${version}.tar.gz";
    sha256 = "1xhwna961fl4298ac5cc629x5030zlw31vx4h8zws290amw5860g";
  };

  buildPhase = ''
    substituteInPlace Makefile.common --replace /usr $out
    make build-shared
  '';

  NIX_CFLAGS_COMPILE = [
    "-std=c++11"
  ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "A C++ library of designs, containing flexible implementations of common design patterns and idioms";
    homepage = "http://loki-lib.sourceforge.net";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ peterhoeg ];
  };
}