summaryrefslogtreecommitdiff
path: root/pkgs/force-riscv/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
committerAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
commitd7ac88762db111a7962c4e14b5f4e37ab85ccac7 (patch)
tree0c2c8c4383bef74215e3b7c48a2f6b0117f084bc /pkgs/force-riscv/default.nix
parent504589d1035f27b766bd33040b415b2725ece4ca (diff)
tree-wide: reformat using alejandra after enabling trivionomicon
Diffstat (limited to 'pkgs/force-riscv/default.nix')
-rw-r--r--pkgs/force-riscv/default.nix71
1 files changed, 38 insertions, 33 deletions
diff --git a/pkgs/force-riscv/default.nix b/pkgs/force-riscv/default.nix
index 35907ce..097fb8d 100644
--- a/pkgs/force-riscv/default.nix
+++ b/pkgs/force-riscv/default.nix
@@ -1,40 +1,46 @@
-{ fetchFromGitHub, lib, makeWrapper, python3, stdenv }:
-with lib; stdenv.mkDerivation {
- pname = "force-riscv";
- version = "master-2023-01-31";
+{
+ fetchFromGitHub,
+ lib,
+ makeWrapper,
+ python3,
+ stdenv,
+}:
+with lib;
+ stdenv.mkDerivation {
+ pname = "force-riscv";
+ version = "master-2023-01-31";
- src = fetchFromGitHub {
- repo = "force-riscv";
- owner = "openhwgroup";
+ src = fetchFromGitHub {
+ repo = "force-riscv";
+ owner = "openhwgroup";
- rev = "192bcc15e0dde8aaf25621da4317569b3f374047";
- sha256 = "sha256-Eol973IMGRVAuw/rsYiK61+KVYkmbqq9yudaNbMCzJ0=";
- };
+ rev = "192bcc15e0dde8aaf25621da4317569b3f374047";
+ sha256 = "sha256-Eol973IMGRVAuw/rsYiK61+KVYkmbqq9yudaNbMCzJ0=";
+ };
- buildInputs = [ python3 ];
- nativeBuildInputs = [ makeWrapper ];
+ buildInputs = [python3];
+ nativeBuildInputs = [makeWrapper];
- patches = [
- ./remove-pyeval-initthreads.patch
- ./wno-error-range-loop-construct.patch
- ./imageio-include-string.patch
- ./testio-include-string.patch
- ./urbg-static-constexpr-min-max.patch
- ];
+ patches = [
+ ./remove-pyeval-initthreads.patch
+ ./wno-error-range-loop-construct.patch
+ ./imageio-include-string.patch
+ ./testio-include-string.patch
+ ./urbg-static-constexpr-min-max.patch
+ ];
- postPatch = ''
- patchShebangs utils/ fpix/utils/
- '';
+ postPatch = ''
+ patchShebangs utils/ fpix/utils/
+ '';
- makeFlags = [
- "FORCE_CC=${stdenv.cc.targetPrefix}c++"
- "FORCE_PYTHON_LIB=${python3}/lib"
- "FORCE_PYTHON_INC=${python3}/include/${python3.libPrefix}"
- ];
+ makeFlags = [
+ "FORCE_CC=${stdenv.cc.targetPrefix}c++"
+ "FORCE_PYTHON_LIB=${python3}/lib"
+ "FORCE_PYTHON_INC=${python3}/include/${python3.libPrefix}"
+ ];
- # Ver setenv.bash
- installPhase =
- let
+ # Ver setenv.bash
+ installPhase = let
paths = [
"3rd_party/py"
"utils"
@@ -45,8 +51,7 @@ with lib; stdenv.mkDerivation {
];
pythonPath = concatStringsSep ":" (map (p: "$out/${p}") paths);
- in
- ''
+ in ''
mkdir -p $out/ $out/fpix/ $out/riscv/ $out/3rd_party/
# SimApiHANDCAR.so queda en bin (?), al parecer es así
@@ -64,4 +69,4 @@ with lib; stdenv.mkDerivation {
cp -r config/ utils/ $out/
cp -r riscv/arch_data/ $out/riscv/
'';
-}
+ }