Merge pull request #239035 from proofconstruction/master
This commit is contained in:
commit
93f1e999f2
|
@ -13189,6 +13189,12 @@
|
||||||
githubId = 406946;
|
githubId = 406946;
|
||||||
name = "Valentin Lorentz";
|
name = "Valentin Lorentz";
|
||||||
};
|
};
|
||||||
|
proofconstruction = {
|
||||||
|
email = "source@proof.construction";
|
||||||
|
github = "proofconstruction";
|
||||||
|
githubId = 74747193;
|
||||||
|
name = "Alexander Groleau";
|
||||||
|
};
|
||||||
proofofkeags = {
|
proofofkeags = {
|
||||||
email = "keagan.mcclelland@gmail.com";
|
email = "keagan.mcclelland@gmail.com";
|
||||||
github = "ProofOfKeags";
|
github = "ProofOfKeags";
|
||||||
|
|
48
pkgs/tools/package-management/fortran-fpm/default.nix
Normal file
48
pkgs/tools/package-management/fortran-fpm/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -7840,6 +7840,8 @@ with pkgs;
|
||||||
|
|
||||||
forktty = callPackage ../os-specific/linux/forktty { };
|
forktty = callPackage ../os-specific/linux/forktty { };
|
||||||
|
|
||||||
|
fortran-fpm = callPackage ../tools/package-management/fortran-fpm { };
|
||||||
|
|
||||||
fortune = callPackage ../tools/misc/fortune { };
|
fortune = callPackage ../tools/misc/fortune { };
|
||||||
|
|
||||||
fox = callPackage ../development/libraries/fox {
|
fox = callPackage ../development/libraries/fox {
|
||||||
|
|
Loading…
Reference in a new issue