nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 msgpack-cxx, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "mmtf-cpp"; 11 version = "1.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "rcsb"; 15 repo = "mmtf-cpp"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-8JrNobvekMggS8L/VORKA32DNUdXiDrYMObjd29wQmc="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 propagatedBuildInputs = [ msgpack-cxx ]; 23 24 # Fix the build with msgpack-cxx ≥ 6.0. 25 # 26 # Upstream is unmaintained and does not plan to fix this; see 27 # <https://github.com/rcsb/mmtf-cpp/issues/44>. 28 postPatch = '' 29 substituteInPlace CMakeLists.txt \ 30 --replace-fail 'find_package(msgpack)' 'find_package(msgpack-cxx)' \ 31 --replace-fail msgpackc msgpack-cxx 32 ''; 33 34 meta = { 35 description = "Library of exchange-correlation functionals with arbitrary-order derivatives"; 36 homepage = "https://github.com/rcsb/mmtf-cpp"; 37 license = lib.licenses.mit; 38 platforms = lib.platforms.unix; 39 maintainers = [ lib.maintainers.sheepforce ]; 40 }; 41})