2024-04-21 15:54:59 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, gfortran, meson, ninja, mesonEmulatorHook }:
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "test-drive";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fortran-lang";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-ObAnHFP1Hp0knf/jtGHynVF0CCqK47eqetePx4NLmlM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
2024-04-21 15:54:59 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
|
|
mesonEmulatorHook
|
2023-03-24 00:07:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Procedural Fortran testing framework";
|
|
|
|
homepage = "https://github.com/fortran-lang/test-drive";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = with licenses; [ asl20 mit ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|