···138138 s:
139139 mutFirstChar lib.toLower (lib.concatMapStrings (mutFirstChar lib.toUpper) (lib.splitString "-" s));
140140141141- # finds the images archive for the desired architecture, aborts in case no suitable archive is found
141141+ # finds the images archive for the desired architecture, throws in case no suitable archive is found
142142 findImagesArchive =
143143 arch:
144144 let
···146146 in
147147 lib.findFirst (
148148 n: lib.hasInfix arch n
149149- ) (abort "k3s: no airgap images for ${arch} available") imagesVersionsNames;
149149+ ) (throw "k3s: no airgap images for ${arch} available") imagesVersionsNames;
150150151151 # a shortcut that provides the images archive for the host platform. Currently only supports
152152- # aarch64 (arm64) and x86_64 (amd64), aborts on other architectures.
152152+ # aarch64 (arm64) and x86_64 (amd64), throws on other architectures.
153153 airgapImages = fetchurl (
154154 if stdenv.hostPlatform.isAarch64 then
155155 imagesVersions.${findImagesArchive "arm64"}
156156 else if stdenv.hostPlatform.isx86_64 then
157157 imagesVersions.${findImagesArchive "amd64"}
158158 else
159159- abort "k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."
159159+ throw "k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."
160160 );
161161162162 # so, k3s is a complicated thing to package
···4545 else if isx86_64 then
4646 "amd64"
4747 else
4848- abort "no Nim CPU support known for ${config}";
4848+ throw "no Nim CPU support known for ${config}";
49495050 parseOs =
5151 platform:
···7272 else if isiOS then
7373 "iOS"
7474 else
7575- abort "no Nim OS support known for ${config}";
7575+ throw "no Nim OS support known for ${config}";
76767777 parsePlatform = p: {
7878 cpu = parseCpu p;
+2-2
pkgs/by-name/or/orchard/package.nix
···7788buildGoModule rec {
99 pname = "orchard";
1010- version = "0.25.2";
1010+ version = "0.26.2";
11111212 src = fetchFromGitHub {
1313 owner = "cirruslabs";
1414 repo = pname;
1515 rev = version;
1616- hash = "sha256-FuqzVMpv62Knbbhy9yExyjT2UVdH2KlaQ+ETW8/abWc=";
1616+ hash = "sha256-j072161KN/4VjHnxF6fqnVOoWhKlDTNzDZKzX2TK5Y0=";
1717 # populate values that require us to use git. By doing this in postFetch we
1818 # can delete .git afterwards and maintain better reproducibility of the src.
1919 leaveDotGit = true;
···4646 startScript = if stdenv.hostPlatform.isx86_32 then "START_LINUX_X86"
4747 else if stdenv.hostPlatform.isx86_64 then "START_LINUX_X86_64"
4848 #else if stdenv.hostPlatform.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
4949- else abort "Unsupported platform: ${stdenv.hostPlatform.linuxArch}.";
4949+ else throw "Unsupported platform: ${stdenv.hostPlatform.linuxArch}.";
50505151 linuxExecutable = if stdenv.hostPlatform.isx86_32 then "pixilang_linux_x86"
5252 else if stdenv.hostPlatform.isx86_64 then "pixilang_linux_x86_64"
···541541 ";
542542 buildProject lldb llvm-project/lldb
543543544544- ${lib.optionalString stdenv.hostPlatform.isDarwin ''
544544+ ${lib.optionalString stdenv.targetPlatform.isDarwin ''
545545 # Need to do a standalone build of concurrency for Darwin back deployment.
546546 # Based on: utils/swift_build_support/swift_build_support/products/backdeployconcurrency.py
547547 cmakeFlags="