Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 30 lines 784 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "loki"; 5 version = "0.1.7"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/loki-lib/Loki/Loki%20${version}/loki-${version}.tar.gz"; 9 sha256 = "1xhwna961fl4298ac5cc629x5030zlw31vx4h8zws290amw5860g"; 10 }; 11 12 buildPhase = '' 13 substituteInPlace Makefile.common --replace /usr $out 14 make build-shared 15 ''; 16 17 env.NIX_CFLAGS_COMPILE = toString [ 18 "-std=c++11" 19 ]; 20 21 enableParallelBuilding = true; 22 23 meta = with lib; { 24 description = "C++ library of designs, containing flexible implementations of common design patterns and idioms"; 25 homepage = "https://loki-lib.sourceforge.net"; 26 license = licenses.mit; 27 platforms = platforms.all; 28 maintainers = with maintainers; [ peterhoeg ]; 29 }; 30}