about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/physics/apfel/default.nix
blob: c0860d9a1baf3eb53a95223d0aced725321de4c3 (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
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gfortran, lhapdf, python3, zlib }:

stdenv.mkDerivation rec {
  pname = "apfel";
  version = "3.0.6";

  src = fetchFromGitHub {
    owner = "scarrazza";
    repo = "apfel";
    rev = version;
    sha256 = "sha256-fRdJ+C92tEC75iUwP9Tmm/EswrlA52eUo5fBjfieH9o=";
  };

  # needed for aarch64-darwin
  nativeBuildInputs = [ autoreconfHook ];

  buildInputs = [ gfortran lhapdf python3 zlib ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "A PDF Evolution Library";
    license     = licenses.gpl3Plus;
    homepage    = "https://apfel.mi.infn.it/";
    platforms   = platforms.unix;
    maintainers = with maintainers; [ veprbl ];
  };
}