summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorAllen Nelson <anelson@narrativescience.com>2015-05-22 00:31:14 -0500
committerAllen Nelson <anelson@narrativescience.com>2015-05-22 00:35:13 -0500
commite802740b69375fc628e446ffd7c3f746c59312d0 (patch)
treee03ed37250a3ddbb81da68b0b5767ccbf6669b27 /pkgs/development/compilers/gcc
parente70f9e74f222dce8f8dbebb38ab49530e53e10ba (diff)
downloadnixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar.gz
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar.bz2
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar.lz
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar.xz
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.tar.zst
nixpkgs-e802740b69375fc628e446ffd7c3f746c59312d0.zip
adding metadata, putting version in name
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/gfortran-darwin.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/compilers/gcc/gfortran-darwin.nix b/pkgs/development/compilers/gcc/gfortran-darwin.nix
index 4c596c4f1fb..954b236ff6f 100644
--- a/pkgs/development/compilers/gcc/gfortran-darwin.nix
+++ b/pkgs/development/compilers/gcc/gfortran-darwin.nix
@@ -1,15 +1,13 @@
-# This is a derivation customized to work on OS X (Darwin).
+# This is a derivation specific to OS X (Darwin). It may work on other
+# systems as well but has not been tested.
 {gmp, mpfr, libmpc, fetchurl, stdenv}:
 
-# This package is only intended for OSX.
-assert stdenv.isDarwin;
-
 stdenv.mkDerivation rec {
-  name = "gfortran";
+  name = "gfortran-${version}";
   version = "5.1.0";
   buildInputs = [gmp mpfr libmpc];
   src = fetchurl {
-    url = "https://ftp.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
+    url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
     sha256 = "1bd5vj4px3s8nlakbgrh38ynxq4s654m6nxz7lrj03mvkkwgvnmp";
   };
   configureFlags = ''
@@ -19,4 +17,10 @@ stdenv.mkDerivation rec {
     --with-mpc=${libmpc}
   '';
   makeFlags = ["CC=clang"];
+  meta = with stdenv.lib; {
+    description = "GNU Fortran compiler, part of the GNU Compiler Collection.";
+    homepage    = "https://gcc.gnu.org/fortran/";
+    license     = licenses.gpl3Plus;
+    platforms   = platforms.darwin;
+  };
 }