depot/third_party/nixpkgs/pkgs/development/libraries/loki/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

30 lines
772 B
Nix

{ 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 ];
};
}