blob: 86e03df16b0e9dd4077c1ecb9cfa177e4ddaa354 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, gfortran
, mctc-lib
}:
stdenv.mkDerivation rec {
pname = "mstore";
version = "0.2.0";
src = fetchFromGitHub {
owner = "grimme-lab";
repo = pname;
rev = "v${version}";
hash = "sha256-dN2BulLS/ENRFVdJIrZRxgBV8S4d5+7BjTCGnhBbf4I=";
};
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [ mctc-lib ];
postInstall = ''
substituteInPlace $out/lib/pkgconfig/${pname}.pc \
--replace "''${prefix}/" ""
'';
meta = with lib; {
description = "Molecular structure store for testing";
license = licenses.asl20;
homepage = "https://github.com/grimme-lab/mstore";
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}
|