[Nix-dev] patch to add glpk

Brian Gough bjg at gnu.org
Fri Apr 23 17:49:41 CEST 2010


Hello!

Here is a patch to add GLPK (the GNU linear programming library) to
Nixpkgs.  If the format of the patch is ok I can do one for other
missing gnu packages, either individually or as a combined patch.

-- 
Brian Gough



Index: pkgs/development/libraries/glpk/default.nix
===================================================================
--- pkgs/development/libraries/glpk/default.nix	(revision 0)
+++ pkgs/development/libraries/glpk/default.nix	(revision 0)
@@ -0,0 +1,28 @@
+{ fetchurl, stdenv }:
+
+stdenv.mkDerivation rec {
+  name = "glpk-4.43";
+
+  src = fetchurl {
+    url = "mirror://gnu/glpk/${name}.tar.gz";
+    sha256 = "3be5f9c2cc355b39570ddb1b86a2ccc40fb52f81588f953f22c2ed29e3278e27";
+  };
+
+  doCheck = true;
+
+  meta = {
+    description = "The GNU Linear Programming Kit";
+
+    longDescription = ''
+        The GNU Linear Programming Kit is intended for solving large
+        scale linear programming problems by means of the revised
+        simplex method.  It is a set of routines written in the ANSI C
+        programming language and organized in the form of a library.
+    '';
+
+    homepage = http://www.gnu.org/software/glpk/;
+    license = "GPLv3+";
+
+    maintainers = [ "Brian Gough <bjg at gnu.org>" ];
+  };
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix	(revision 21270)
+++ pkgs/top-level/all-packages.nix	(working copy)
@@ -3832,6 +3832,10 @@
         '' # */
         ;
 
+  glpk = import ../development/libraries/glpk {
+    inherit fetchurl stdenv;
+  };
+
   gmime = import ../development/libraries/gmime {
     inherit fetchurl stdenv pkgconfig zlib glib;
   };



More information about the nix-dev mailing list