fortran-fpm: init at 0.9.0

This commit is contained in:
alex 2023-06-28 10:18:27 -05:00
parent 4edf0b8bc4
commit b6e385c911
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, fetchurl
, pkgs
, stdenv
}:
stdenv.mkDerivation rec {
pname = "fortran-fpm";
version = "0.9.0";
src = fetchurl {
url = "https://github.com/fortran-lang/fpm/releases/download/v${version}/fpm-${version}.F90";
sha256 = "sha256-VWs4g7odtv1iyZunFD8el+u0CXKcQgnwOqPG/JcMzj8=";
};
dontUnpack = true;
nativeBuildInputs = with pkgs; [ gfortran ];
buildPath = "build/bootstrap";
buildPhase = ''
runHook preBuild
mkdir -p ${buildPath}
gfortran -J ${buildPath} -o ${buildPath}/${pname} $src
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ${buildPath}/${pname} $out/bin
runHook postInstall
'';
meta = with lib; {
description = "Fortran Package Manager (fpm)";
homepage = "https://fpm.fortran-lang.org";
maintainers = [ maintainers.proofconstruction ];
license = licenses.mit;
platforms = platforms.all;
};
}

View File

@ -7792,6 +7792,8 @@ with pkgs;
forktty = callPackage ../os-specific/linux/forktty { };
fortran-fpm = callPackage ../tools/package-management/fortran-fpm { };
fortune = callPackage ../tools/misc/fortune { };
fox = callPackage ../development/libraries/fox {