depot/pkgs/by-name/mc/mctc-lib/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
851 B
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, gfortran
, meson
, ninja
, pkg-config
, python3
, json-fortran
}:
stdenv.mkDerivation rec {
pname = "mctc-lib";
version = "0.3.2";
src = fetchFromGitHub {
owner = "grimme-lab";
repo = pname;
rev = "v${version}";
hash = "sha256-dJYKnGlcc4N40h1RnP6MJyBj70/8kb1q4OyKTmlvS70=";
};
nativeBuildInputs = [ gfortran meson ninja pkg-config python3 ];
buildInputs = [ json-fortran ];
outputs = [ "out" "dev" ];
doCheck = true;
postPatch = ''
patchShebangs --build config/install-mod.py
'';
meta = with lib; {
description = "Modular computation tool chain library";
mainProgram = "mctc-convert";
homepage = "https://github.com/grimme-lab/mctc-lib";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}