nixpkgs/pkgs/development/libraries/loki/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
772 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2017-01-04 08:37:31 +00:00
stdenv.mkDerivation rec {
pname = "loki";
2017-01-04 08:37:31 +00:00
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
'';
2022-05-15 11:10:54 +00:00
NIX_CFLAGS_COMPILE = [
"-std=c++11"
];
2017-01-04 08:37:31 +00:00
enableParallelBuilding = true;
meta = with lib; {
2017-01-04 08:37:31 +00:00
description = "A C++ library of designs, containing flexible implementations of common design patterns and idioms";
homepage = "http://loki-lib.sourceforge.net";
2017-01-04 08:37:31 +00:00
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ peterhoeg ];
};
}