(mostly) Pass nixpkgs release checks on RISC-V (#420442)
This commit is contained in:
@@ -1115,7 +1115,7 @@ let
|
||||
publisher = "Continue";
|
||||
version = "1.1.49";
|
||||
}
|
||||
// sources.${stdenv.system};
|
||||
// sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
|
||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||
meta = {
|
||||
@@ -1387,7 +1387,7 @@ let
|
||||
publisher = "devsense";
|
||||
version = "1.41.14332";
|
||||
}
|
||||
// sources.${stdenv.system};
|
||||
// sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
@@ -3334,7 +3334,7 @@ let
|
||||
publisher = "ms-dotnettools";
|
||||
version = "2.2.3";
|
||||
}
|
||||
// sources.${stdenv.system};
|
||||
// sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
|
||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||
buildInputs = [
|
||||
(lib.getLib stdenv.cc.cc)
|
||||
|
||||
@@ -47,7 +47,9 @@ rustPlatform.buildRustPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
# provide the list of solc versions to the `svm-rs-builds` dependency
|
||||
SVM_RELEASES_LIST_JSON = solc-versions.${stdenv.hostPlatform.system};
|
||||
SVM_RELEASES_LIST_JSON =
|
||||
solc-versions.${stdenv.hostPlatform.system}
|
||||
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
|
||||
meta = {
|
||||
description = "Solidity test generator based on the Branching Tree Technique";
|
||||
|
||||
@@ -30,7 +30,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
};
|
||||
};
|
||||
in
|
||||
fetchurl urls."${stdenvNoCC.hostPlatform.system}";
|
||||
fetchurl (
|
||||
urls."${stdenvNoCC.hostPlatform.system}"
|
||||
or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}")
|
||||
);
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
unzip,
|
||||
}:
|
||||
let
|
||||
info = (lib.importJSON ./info.json)."${stdenvNoCC.hostPlatform.parsed.cpu.name}-darwin";
|
||||
info =
|
||||
(lib.importJSON ./info.json)."${stdenvNoCC.hostPlatform.parsed.cpu.name}-darwin"
|
||||
or (throw "Unsupported CPU architecture: ${stdenvNoCC.hostPlatform.parsed.cpu.name}");
|
||||
in
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "notion-app";
|
||||
|
||||
@@ -124,5 +124,7 @@ stdenv.mkDerivation (
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (stdenv.hostPlatform.isDarwin) darwinAttrs
|
||||
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) linuxAttrs.${stdenv.system}
|
||||
//
|
||||
lib.optionalAttrs (stdenv.hostPlatform.isLinux)
|
||||
linuxAttrs.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}")
|
||||
)
|
||||
|
||||
@@ -24,7 +24,9 @@ let
|
||||
go-turbo = stdenv.mkDerivation {
|
||||
pname = "go-turbo";
|
||||
version = go-turbo-version;
|
||||
src = go-turbo-srcs.${stdenv.hostPlatform.system};
|
||||
src =
|
||||
go-turbo-srcs.${stdenv.hostPlatform.system}
|
||||
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
|
||||
@@ -484,6 +484,7 @@ stdenv.mkDerivation {
|
||||
"aarch64" = "AArch64";
|
||||
}
|
||||
.${targetPlatform.parsed.cpu.name}
|
||||
or (throw "Unsupported CPU architecture: ${targetPlatform.parsed.cpu.name}")
|
||||
}
|
||||
"
|
||||
buildProject llvm llvm-project/llvm
|
||||
|
||||
@@ -35,8 +35,11 @@ buildPythonPackage rec {
|
||||
inherit pname version format;
|
||||
python = "py3";
|
||||
dist = "py3";
|
||||
platform = platforms.${stdenv.hostPlatform.system} or { };
|
||||
sha256 = hashes.${stdenv.hostPlatform.system} or { };
|
||||
platform =
|
||||
platforms.${stdenv.hostPlatform.system}
|
||||
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
sha256 =
|
||||
hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -10,7 +10,9 @@ let
|
||||
fetchurl {
|
||||
name = "librusty_v8-${args.version}";
|
||||
url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a.gz";
|
||||
sha256 = args.shas.${stdenv.hostPlatform.system};
|
||||
sha256 =
|
||||
args.shas.${stdenv.hostPlatform.system}
|
||||
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
meta = {
|
||||
inherit (args) version;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
|
||||
@@ -170,6 +170,7 @@ let
|
||||
"aarch64" = "AArch64";
|
||||
}
|
||||
.${llvmStdenv.targetPlatform.parsed.cpu.name}
|
||||
or (throw "Unsupported CPU architecture: ${llvmStdenv.targetPlatform.parsed.cpu.name}")
|
||||
}";
|
||||
# -ffat-lto-objects = emit LTO object files that are compatible with non-LTO-supporting builds too
|
||||
# FatLTO objects are a special type of fat object file that contain LTO compatible IR in addition to generated object code,
|
||||
|
||||
@@ -1387,6 +1387,8 @@ with pkgs;
|
||||
pkgsCross.gnu32.callPackage ../applications/emulators/box86 args
|
||||
else if stdenv.hostPlatform.isAarch64 then
|
||||
pkgsCross.armv7l-hf-multiplatform.callPackage ../applications/emulators/box86 args
|
||||
else if stdenv.hostPlatform.isRiscV64 then
|
||||
pkgsCross.riscv32.callPackage ../applications/emulators/box86 args
|
||||
else
|
||||
throw "Don't know 32-bit platform for cross from: ${stdenv.hostPlatform.stdenv}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user