diff options
-rw-r--r-- | pkgs/applications/science/math/clp/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/applications/science/math/clp/default.nix b/pkgs/applications/science/math/clp/default.nix index 26c277c2685f2..a9283fe9adad8 100644 --- a/pkgs/applications/science/math/clp/default.nix +++ b/pkgs/applications/science/math/clp/default.nix @@ -1,14 +1,18 @@ -{ lib, stdenv, fetchurl, zlib }: +{ lib, stdenv, fetchFromGitHub, pkg-config, coin-utils, zlib, osi }: stdenv.mkDerivation rec { - version = "1.17.6"; + version = "1.17.7"; pname = "clp"; - src = fetchurl { - url = "https://www.coin-or.org/download/source/Clp/Clp-${version}.tgz"; - sha256 = "0ap1f0lxppa6pnbc4bg7ih7a96avwaki482nig8w5fr3vg9wvkzr"; + src = fetchFromGitHub { + owner = "coin-or"; + repo = "Clp"; + rev = "releases/${version}"; + hash = "sha256-CfAK/UbGaWvyk2ZxKEgziVruzZfz7WMJVi/YvdR/UNA="; }; - propagatedBuildInputs = [ zlib ]; + nativeBuildInputs = [ pkg-config ]; + + propagatedBuildInputs = [ zlib coin-utils osi ]; doCheck = true; |