Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, cmake, llvmPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "cppe"; 5 version = "0.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "maxscheurer"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-guM7+ZWDJLcAUJtPkKLvC4LYSA2eBvER7cgwPZ7FxHw="; 12 }; 13 14 nativeBuildInputs = [ cmake ] 15 ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; 16 17 cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ]; 18 19 meta = with lib; { 20 description = "C++ and Python library for Polarizable Embedding"; 21 homepage = "https://github.com/maxscheurer/cppe"; 22 license = licenses.lgpl3Only; 23 platforms = platforms.unix; 24 maintainers = [ maintainers.sheepforce ]; 25 }; 26}