depot/third_party/nixpkgs/pkgs/development/libraries/toml-f/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

38 lines
814 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, gfortran
, cmake
, test-drive
}:
stdenv.mkDerivation rec {
pname = "toml-f";
version = "0.3.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-8FbnUkeJUP4fiuJCroAVDo6U2M7ZkFLpG2OYrapMYtU=";
};
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 ];
};
}