about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libctl/default.nix
blob: d7fed2415df0f3d48124461f9adc48192f90478d (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
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, gfortran
, guile
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "libctl";
  version = "4.5.1";

  src = fetchFromGitHub {
    owner = "NanoComp";
    repo = pname;
    rev = "v${version}";
    sha256 = "uOydBWYPXSBUi+4MM6FNx6B5l2to7Ny9Uc1MMTV9bGA=";
  };

  nativeBuildInputs = [ autoreconfHook gfortran guile pkg-config ];

  configureFlags = [ "--enable-shared" ];

  meta = with lib; {
    description = "Guile-based library for supporting flexible control files in scientific simulations";
    homepage = "https://github.com/NanoComp/libctl";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ carpinchomug ];
  };
}