mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
784 B
Nix
30 lines
784 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
|
|
'';
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-std=c++11"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "C++ library of designs, containing flexible implementations of common design patterns and idioms";
|
|
homepage = "https://loki-lib.sourceforge.net";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|