2023-03-16 16:49:34 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gfortran
|
|
|
|
, cmake
|
|
|
|
, test-drive
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "toml-f";
|
2023-10-20 18:47:33 +02:00
|
|
|
version = "0.4.1";
|
2023-03-16 16:49:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-20 18:47:33 +02:00
|
|
|
hash = "sha256-sCU0uMdcXIA5O964hlK37cOrLTlk1CJeTcWD9FhevOs=";
|
2023-03-16 16:49:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gfortran cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ test-drive ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/lib/pkgconfig/${pname}.pc \
|
|
|
|
--replace "''${prefix}/" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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";
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|