2024-03-26 18:40:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gfortran,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
mesonEmulatorHook,
|
|
|
|
}:
|
2023-03-15 09:51:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "test-drive";
|
2024-08-30 14:42:49 +00:00
|
|
|
version = "0.5.0";
|
2023-03-15 09:51:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fortran-lang";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-08-30 14:42:49 +00:00
|
|
|
hash = "sha256-xRx8ErIN9xjxZt/nEsdIQkIGFRltuELdlI8lXA+M030=";
|
2023-03-15 09:51:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
gfortran
|
2024-03-26 18:40:02 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
]
|
|
|
|
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
|
|
mesonEmulatorHook
|
2023-03-15 09:51:46 +00:00
|
|
|
];
|
|
|
|
|
2024-09-09 18:22:52 +00:00
|
|
|
mesonAutoFeatures = "auto";
|
|
|
|
|
2023-03-15 09:51:46 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Procedural Fortran testing framework";
|
|
|
|
homepage = "https://github.com/fortran-lang/test-drive";
|
2024-03-26 18:40:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
asl20
|
|
|
|
mit
|
|
|
|
];
|
2023-03-15 09:51:46 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|