Skip to content

Commit

Permalink
treewide: fix invalid gentoo/distfiles urls (#257808)
Browse files Browse the repository at this point in the history
* nettools: fix url; avoid gentoo/distfiles which now uses hashed directories

* pax-utils: fix url; avoid gentoo/distfiles which now uses hashed directories

The project doesn't seem to publish the exact tarball which was relied
on, but we can fetch the sources from the original repository.  (This
implies some rebuilds.)

* mtx: fix url; avoid gentoo/distfiles which now uses hashed directories

* vlan: fix url; avoid gentoo/distfiles which now uses hashed directories
  • Loading branch information
ztzg authored Sep 28, 2023
1 parent d90e8fd commit b5213d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/net-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
version = "2.10";

src = fetchurl {
url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz";
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk=";
};

Expand Down
9 changes: 5 additions & 4 deletions pkgs/os-specific/linux/pax-utils/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv
, lib
, fetchurl
, fetchgit
, buildPackages
, docbook_xml_dtd_44
, docbook_xsl
Expand All @@ -18,9 +18,10 @@ stdenv.mkDerivation rec {
pname = "pax-utils";
version = "1.3.7";

src = fetchurl {
url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz";
sha256 = "sha256-EINi0pZo0lz3sMrcY7FaTBz8DbxxrcFRszxf597Ok5o=";
src = fetchgit {
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
rev = "v${version}";
hash = "sha256-WyNng+UtfRz1+Eu4gwXLxUvBAg+m3mdrc8GdEPYRKVE=";
};

strictDeps = true;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/backup/mtx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
version = "1.3.12";

src = fetchurl {
url = "mirror://gentoo/distfiles/mtx-${version}.tar.gz";
url = "mirror://sourceforge/${pname}/${pname}-stable/${version}/${pname}-${version}.tar.gz";
sha256 = "0261c5e90b98b6138cd23dadecbc7bc6e2830235145ed2740290e1f35672d843";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/networking/vlan/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
version = "1.9";

src = fetchurl {
url = "mirror://gentoo/distfiles/vlan.${version}.tar.gz";
url = "https://www.candelatech.com/~greear/${pname}/${pname}.${version}.tar.gz";
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};

Expand Down

0 comments on commit b5213d5

Please sign in to comment.