firedrake: Initial packaging
This commit is contained in:
33
firedrake/pulp.nix
Normal file
33
firedrake/pulp.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user