From acbcc37f272e409a519db7d9eb6a2cbe493d9d83 Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Wed, 15 Mar 2023 10:51:46 +0100 Subject: [PATCH] test-drive: init at 0.4.0 --- .../libraries/test-drive/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/test-drive/default.nix diff --git a/pkgs/development/libraries/test-drive/default.nix b/pkgs/development/libraries/test-drive/default.nix new file mode 100644 index 00000000000..b858f39498c --- /dev/null +++ b/pkgs/development/libraries/test-drive/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchFromGitHub, gfortran, cmake }: + +stdenv.mkDerivation rec { + pname = "test-drive"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "fortran-lang"; + repo = pname; + rev = "v${version}"; + hash = "sha256-ObAnHFP1Hp0knf/jtGHynVF0CCqK47eqetePx4NLmlM="; + }; + + postPatch = '' + substituteInPlace config/template.pc \ + --replace 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' "libdir=@CMAKE_INSTALL_LIBDIR@" \ + --replace 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' "includedir=@CMAKE_INSTALL_INCLUDEDIR@" + ''; + + nativeBuildInputs = [ + gfortran + cmake + ]; + + meta = with lib; { + description = "Procedural Fortran testing framework"; + homepage = "https://github.com/fortran-lang/test-drive"; + license = with licenses; [ asl20 mit ] ; + platforms = platforms.linux; + maintainers = [ maintainers.sheepforce ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c38d7511431..09f5bb9d090 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22425,6 +22425,8 @@ with pkgs; multicharge = callPackage ../development/libraries/science/chemistry/multicharge { }; + test-drive = callPackage ../development/libraries/test-drive { }; + ## libGL/libGLU/Mesa stuff # Default libGL implementation, should provide headers and