nixpkgs/pkgs/by-name/te/test-drive/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
834 B
Nix
Raw Normal View History

{
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
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";
license = with licenses; [
asl20
mit
];
2023-03-15 09:51:46 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}