soupault: support both code forge mirrors

Acknowledge the open source, nonprofit forge while prefer using the
bandwidth for downloading from the corporate, proprietary forge.
Nixpkgs should be like Soupault; Nixpkgs needs a mirror that isn’t
locked behind a proprietary, for-profit vendor.
This commit is contained in:
toastal 2024-03-19 21:52:16 +07:00 committed by Vincent Laporte
parent b03eafd6b9
commit bde81af241

View file

@ -1,5 +1,5 @@
{ lib
, fetchFromGitea
, fetchzip
, ocamlPackages
, soupault
, testers
@ -15,11 +15,11 @@ ocamlPackages.buildDunePackage {
minimalOCamlVersion = "4.13";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "PataphysicalSociety";
repo = pname;
rev = version;
src = fetchzip {
urls = [
"https://github.com/PataphysicalSociety/soupault/archive/${version}.tar.gz"
"https://codeberg.org/PataphysicalSociety/soupault/archive/${version}.tar.gz"
];
hash = "sha256-vGTJUbAeYs/EYFykNSmCc4c9G66/Lz3BsUYnZQ8feFo=";
};