firedrake: Initial packaging

This commit is contained in:
Tyson Whitehead
2017-05-01 20:09:09 -04:00
parent e0577fa54e
commit a2f7eda6de
18 changed files with 607 additions and 0 deletions

33
firedrake/pulp.nix Normal file
View File

@@ -0,0 +1,33 @@
with import <nixpkgs> {};
python27Packages.buildPythonPackage rec {
version = "1.6.4";
name = "PuLP-${version}";
src = fetchFromGitHub {
owner = "coin-or";
repo = "pulp";
rev = "${version}";
sha256 = "02i915ixrz66bpaka82j0x72kl76sr2b5xdx4ahwdlsffvmv9qnx";
};
buildInputs = [
glpk
cbc
];
propagatedBuildInputs = [
python27Packages.pyparsing
];
postPatch = ''
sed -i -e 's|^CbcPath = .*$|CbcPath = ${cbc}/bin/cbc|' src/pulp/pulp.cfg.linux
sed -i -e 's|^GlpkPath = .*$|GlpkPath = ${glpk}/bin/glpsol|' src/pulp/pulp.cfg.linux
'';
meta = {
homepage = "https://github.com/coin-or/pulp";
description = "A python Linear Programming API.";
license = licenses.mit;
};
}