octavePackages: use alternative fetchers for moved projects

Many projects moved from SourceForge to other hosting sites. Use an
appropriate fetcher for each of the packages that have moved to the
new sites.

octavePackages.bim: fetchurl -> fetchFromGitHub

There was a migration from SourceForge to GitHub by the authors.

octavePackages.msh: fetchurl -> fetchFromGitHub

There was a migration from SourceForge to GitHub by the authors.

octavePackages.statistics: fetchurl -> fetchFromGitHub

There was a migration from SourceForge to GitHub by the authors.

octavePackages.octclip: fetchurl -> fetchFromBitbucket

There was a migration from SourceForge to Bitbucket by the authors.

octavePackages.geometry: fetchurl -> fetchhg

Release 4.0.0 is broken. Revision
04965cda30b5f9e51774194c67879e7336df1710 was made shortly thereafter,
fixing a compilation bug.

The bug in question:
polygon.cpp:208:22:
error: static assertion failed: comparison object must be invocable as const
is_invocable_v<const _Compare&, const _Key&, const _Key&>,

octavePackages.octproj: fetchurl -> fetchFromBitbucket

There was a migration from SourceForge to Bitbucket by the authors.
This commit is contained in:
Karl Hallsby 2022-12-23 10:49:46 -06:00 committed by Doron Behar
parent 525ba3e492
commit 45b015a165
6 changed files with 36 additions and 25 deletions

View File

@ -1,6 +1,6 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchFromGitHub
, fpl
, msh
}:
@ -9,9 +9,11 @@ buildOctavePackage rec {
pname = "bim";
version = "1.1.6";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "sha256-pv64swrPlgopBlubpAlfoD9KJlOSgF9wdbgdHHTcr9c=";
src = fetchFromGitHub {
owner = "carlodefalco";
repo = "bim";
rev = "v${version}";
sha256 = "sha256-hgFb1KFE1KJC8skIaeT/7h/fg1aqRpedGnEPY24zZSI=";
};
requiredOctavePackages = [

View File

@ -1,16 +1,17 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchhg
, matgeom
}:
buildOctavePackage rec {
pname = "geometry";
version = "4.0.0";
version = "unstable-2021-07-07";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "1zmd97xir62fr5v57xifh2cvna5fg67h9yb7bp2vm3ll04y41lhs";
src = fetchhg {
url = "http://hg.code.sf.net/p/octave/${pname}";
rev = "04965cda30b5f9e51774194c67879e7336df1710";
sha256 = "sha256-ECysYOJMF4gPiCFung9hFSlyyO60X3MGirQ9FlYDix8=";
};
requiredOctavePackages = [

View File

@ -1,6 +1,6 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchFromGitHub
# Octave Dependencies
, splines
# Other Dependencies
@ -15,9 +15,11 @@ buildOctavePackage rec {
pname = "msh";
version = "1.0.12";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "sha256-7xbB+RXq5SE7Ke5rNwSo/mqdSZTzCLXRhS4zdfGz55s=";
src = fetchFromGitHub {
owner = "carlodefalco";
repo = "msh";
rev = "v${version}";
sha256 = "sha256-UnMrIruzm3ARoTgUlMMxfjTOMZw/znZUQJmj3VEOw8I=";
};
nativeBuildInputs = [

View File

@ -1,15 +1,17 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchFromBitbucket
}:
buildOctavePackage rec {
pname = "octclip";
version = "2.0.3";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "sha256-u6wvCibdkLgmC8Q2LlpVLfXR3LYtssYlO2cRqYPmmR8=";
src = fetchFromBitbucket {
owner = "jgpallero";
repo = pname;
rev = "OctCLIP-${version}";
sha256 = "sha256-gG2b8Ix6bzO6O7GRACE81JCVxfXW/+ZdfoniigAEq3g=";
};
# The only compilation problem is that no formatting specifier was provided

View File

@ -1,6 +1,6 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchFromBitbucket
, proj # >= 6.3.0
}:
@ -8,9 +8,11 @@ buildOctavePackage rec {
pname = "octproj";
version = "3.0.2";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "sha256-G2Ajnt4KGaq9hdXHLHL+6d9lGb83wkMHZqswNijwSzs=";
src = fetchFromBitbucket {
owner = "jgpallero";
repo = pname;
rev = "OctPROJ-${version}";
sha256 = "sha256-d/Zf172Etj+GA0cnGsQaKMjOmirE7Hwyj4UECpg7QFM=";
};
# The sed changes below allow for the package to be compiled.

View File

@ -1,6 +1,6 @@
{ buildOctavePackage
, lib
, fetchurl
, fetchFromGitHub
, io
}:
@ -8,9 +8,11 @@ buildOctavePackage rec {
pname = "statistics";
version = "1.5.2";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "sha256-JtXwR7bfFcRu6zRD1gGYG06Txmcu42w2C+zMXEiFf/U=";
src = fetchFromGitHub {
owner = "gnu-octave";
repo = "statistics";
rev = "release-${version}";
sha256 = "sha256-+Eye29vH4HBfaZRzRNY6J0+wWjh6aCvnq7hZ7M34L2M=";
};
requiredOctavePackages = [