2023-03-24 00:07:29 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gfortran
|
2024-04-21 15:54:59 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-03-24 00:07:29 +00:00
|
|
|
, test-drive
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "toml-f";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.4.2";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-+cac4rUNpd2w3yBdH1XoCKdJ9IgOHZioZg8AhzGY0FE=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ gfortran meson ninja pkg-config ];
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
buildInputs = [ test-drive ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tftest-build fails on aarch64-linux
|
|
|
|
doCheck = !stdenv.isAarch64;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "TOML parser implementation for data serialization and deserialization in Fortran";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
homepage = "https://github.com/toml-f/toml-f";
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.linux;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|