toml-f: init at 0.3.1
toml-f: restrict evaluation to x86_64-linux
This commit is contained in:
parent
6e16f9d825
commit
6b89d3c569
38
pkgs/development/libraries/toml-f/default.nix
Normal file
38
pkgs/development/libraries/toml-f/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -22433,6 +22433,8 @@ with pkgs;
|
|||
|
||||
tblite = callPackage ../development/libraries/science/chemistry/tblite { };
|
||||
|
||||
toml-f = callPackage ../development/libraries/toml-f { };
|
||||
|
||||
## libGL/libGLU/Mesa stuff
|
||||
|
||||
# Default libGL implementation, should provide headers and
|
||||
|
|
Loading…
Reference in a new issue