nixpkgs/pkgs/development/libraries/test-drive/default.nix

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

30 lines
752 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, gfortran, meson, ninja, mesonEmulatorHook }:
2023-03-15 10:51:46 +01: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
meson
ninja
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
2023-03-15 10:51:46 +01: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 10:51:46 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}