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