Unverified Commit 0d7dc0ef authored by annalee's avatar annalee
Browse files

treewide: throw on unsupported system src access

parent 86485beb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
    releasePath
  else
    let
      platform = platforms.${stdenv.system};
      platform = platforms.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
      urlVersion = lib.replaceStrings [ "." ] [ "_" ] version;
    in fetchurl {
      url =
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ let
      hash = "sha256-Ihk3InHB3/tEYRqH2ozhokz2GN8Gfig5DJkO/8P1LJs=";
    };
  };
  src = srcs.${stdenv.hostPlatform.system};
  src = srcs.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");

  meta = with lib; {
    description = "User-friendly Desktop Internet GIS";
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
      url = "https://download.brother.com/welcome/dlf006645/${pname}-${version}.amd64.deb";
      sha256 = "sha256-Gpr5456MCNpyam3g2qPo7S3aEZFMaUGR8bu7YmRY8xk=";
    };
  }."${stdenv.hostPlatform.system}";
  }."${stdenv.hostPlatform.system}" or (throw "unsupported system ${stdenv.hostPlatform.system}");

  unpackPhase = ''
    ar x $src
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ let
  };

  src = fetchurl {
    inherit (sources.${channel}.${stdenv.system}) url hash;
    inherit (sources.${channel}.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}")) url hash;
  };

  meta = with lib; {
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ let
      src = fetchurl {
        url = "mirror://apache/hadoop/common/hadoop-${finalAttrs.version}/hadoop-${finalAttrs.version}"
              + optionalString stdenv.isAarch64 "-aarch64" + ".tar.gz";
        inherit (platformAttrs.${stdenv.system}) hash;
        inherit (platformAttrs.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}")) hash;
      };
      doCheck = true;

Loading