1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 gfortran,
7 guile,
8 pkg-config,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "libctl";
13 version = "4.5.1";
14
15 src = fetchFromGitHub {
16 owner = "NanoComp";
17 repo = "libctl";
18 rev = "v${version}";
19 sha256 = "uOydBWYPXSBUi+4MM6FNx6B5l2to7Ny9Uc1MMTV9bGA=";
20 };
21
22 nativeBuildInputs = [
23 autoreconfHook
24 gfortran
25 guile
26 pkg-config
27 ];
28
29 configureFlags = [ "--enable-shared" ];
30
31 meta = with lib; {
32 description = "Guile-based library for supporting flexible control files in scientific simulations";
33 mainProgram = "gen-ctl-io";
34 homepage = "https://github.com/NanoComp/libctl";
35 license = licenses.gpl2Only;
36 maintainers = [ ];
37 };
38}