From 46993f0fc1642b002de44d78d7f1de4ebd2069a4 Mon Sep 17 00:00:00 2001 From: Albert Chae Date: Mon, 29 Apr 2024 00:39:29 -0700 Subject: [PATCH] WIP --- pkgs/by-name/libresoc/ieee754fpu.nix | 8 +++++--- pkgs/by-name/libresoc/libresoc-c4m-jtag.nix | 9 ++++++--- pkgs/by-name/libresoc/nmutil.nix | 9 ++++++--- pkgs/by-name/libresoc/openpower-isa.nix | 9 ++++++--- pkgs/by-name/libresoc/pinmux.nix | 8 +++++--- pkgs/by-name/libresoc/power-instruction-analyzer.nix | 9 ++++++--- pkgs/by-name/libresoc/pytest-output-to-files.nix | 10 +++++++--- pkgs/by-name/libresoc/soc.nix | 9 ++++++--- 8 files changed, 47 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/libresoc/ieee754fpu.nix b/pkgs/by-name/libresoc/ieee754fpu.nix index 7279973f5..ddb3f24ef 100644 --- a/pkgs/by-name/libresoc/ieee754fpu.nix +++ b/pkgs/by-name/libresoc/ieee754fpu.nix @@ -11,10 +11,12 @@ with python39Packages; pname = "libresoc-ieee754fpu"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/ieee754fpu.git"; - sha256 = "sha256-Ghbvg2Y4YlmxVEa3EtcvEVai4hC4VU4q+XIQh4pQ7+c="; + # mirror of https://git.libre-soc.org/git/ieee754fpu.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "ieee754fpu"; rev = "829dfbc53ba38ec17bc544cb0b862e73cee223db"; # HEAD @ version date + #hash = "sha256-Ghbvg2Y4YlmxVEa3EtcvEVai4hC4VU4q+XIQh4pQ7+c="; }; prePatch = '' diff --git a/pkgs/by-name/libresoc/libresoc-c4m-jtag.nix b/pkgs/by-name/libresoc/libresoc-c4m-jtag.nix index f370d2378..b73d47783 100644 --- a/pkgs/by-name/libresoc/libresoc-c4m-jtag.nix +++ b/pkgs/by-name/libresoc/libresoc-c4m-jtag.nix @@ -11,9 +11,12 @@ python39Packages.buildPythonPackage rec { version = "unstable-2024-03-31"; realVersion = "0.3.dev243+g${lib.substring 0 7 src.rev}"; - src = fetchgit { - url = "https://git.libre-soc.org/git/c4m-jtag.git"; - sha256 = "sha256-0yF/yqcknCq1fre5pnKux4V7guu2oDa6duPO9mU46n8=3"; + # mirror of https://git.libre-soc.org/git/c4m-jtag.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "c4m-jtag"; + #rev = "e4d64e643acb1cd6218fc61910ab6266d3da7573"; # HEAD @ version date + #hash = "sha256-0yF/yqcknCq1fre5pnKux4V7guu2oDa6duPO9mU46n8=3"; }; prePatch = '' diff --git a/pkgs/by-name/libresoc/nmutil.nix b/pkgs/by-name/libresoc/nmutil.nix index baba65fb4..b332c740a 100644 --- a/pkgs/by-name/libresoc/nmutil.nix +++ b/pkgs/by-name/libresoc/nmutil.nix @@ -12,9 +12,12 @@ with python39Packages; pname = "libresoc-nmutil"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/nmutil.git"; - sha256 = "sha256-8jXQGO4IeB6WjGtjuHO8UBh9n3ei7LukmRoXSbNJ1vM="; + # mirror of https://git.libre-soc.org/git/nmutil.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "nmutil"; + rev = "4bf2f20bddc057df1597d14e0b990c0b9bdeb10e"; # HEAD @ version date + #hash = "sha256-8jXQGO4IeB6WjGtjuHO8UBh9n3ei7LukmRoXSbNJ1vM="; }; propagatedNativeBuildInputs = [ diff --git a/pkgs/by-name/libresoc/openpower-isa.nix b/pkgs/by-name/libresoc/openpower-isa.nix index 5be431929..a08a8cb22 100644 --- a/pkgs/by-name/libresoc/openpower-isa.nix +++ b/pkgs/by-name/libresoc/openpower-isa.nix @@ -16,10 +16,13 @@ with python39Packages; name = "libresoc-openpower-isa"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/openpower-isa.git"; - sha256 = "sha256-OKUb3BmVEZD2iRV8sbNEEA7ANJImWX8FEj06o5+HQwU="; + + # mirror of https://git.libre-soc.org/git/openpower-isa.git"; + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "openpower-isa"; rev = "3cb597b99d414dbdb35336eb3734b5d46edd597f"; # HEAD @ version date + #hash= "sha256-OKUb3BmVEZD2iRV8sbNEEA7ANJImWX8FEj06o5+HQwU="; }; # TODO: potential upstream patches diff --git a/pkgs/by-name/libresoc/pinmux.nix b/pkgs/by-name/libresoc/pinmux.nix index 2a25f14a9..6a141386b 100644 --- a/pkgs/by-name/libresoc/pinmux.nix +++ b/pkgs/by-name/libresoc/pinmux.nix @@ -7,10 +7,12 @@ stdenv.mkDerivation { pname = "libresoc-pinmux"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/pinmux.git"; - sha256 = "sha256-Tux2RvcRmlpXMsHwve/+5rOyBRSThg9MVW2NGP3ZJxs="; + # mirror of https://git.libre-soc.org/git/pinmux.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "pinmux"; rev = "ee6c6c5020f11e7debfd8262ffdb8abd6e1782c"; # HEAD @ version date + #hash = "sha256-Tux2RvcRmlpXMsHwve/+5rOyBRSThg9MVW2NGP3ZJxs="; }; nativeBuildInputs = [python39]; diff --git a/pkgs/by-name/libresoc/power-instruction-analyzer.nix b/pkgs/by-name/libresoc/power-instruction-analyzer.nix index da24574d6..1f5984e9f 100644 --- a/pkgs/by-name/libresoc/power-instruction-analyzer.nix +++ b/pkgs/by-name/libresoc/power-instruction-analyzer.nix @@ -10,10 +10,13 @@ with rustPlatform; version = "0.2.0"; format = "pyproject"; - src = fetchgit { - url = "https://git.libre-soc.org/git/power-instruction-analyzer.git"; + + # mirror of https://git.libre-soc.org/git/power-instruction-analyzer.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "power-instruction-analyzer"; rev = "v${version}"; - hash = "sha256-UmgDykG9yn413PXrMsI4oRblCZdHbtaIZ55p89YPfQs="; + #hash = "sha256-UmgDykG9yn413PXrMsI4oRblCZdHbtaIZ55p89YPfQs="; }; cargoDeps = fetchCargoTarball { diff --git a/pkgs/by-name/libresoc/pytest-output-to-files.nix b/pkgs/by-name/libresoc/pytest-output-to-files.nix index bc28d35a0..cdab08944 100644 --- a/pkgs/by-name/libresoc/pytest-output-to-files.nix +++ b/pkgs/by-name/libresoc/pytest-output-to-files.nix @@ -7,10 +7,14 @@ with python39Packages; name = "pytest-output-to-files"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/pytest-output-to-files.git"; - sha256 = "sha256-ES8zZ9s6wGcqw60NoN4tZf/Dq/sBvl+UDYrXuOgfMxI="; + # mirror of https://git.libre-soc.org/git/pytest-output-to-files.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "pytest-output-to-files"; + rev = "e4d64e643acb1cd6218fc61910ab6266d3da7573"; # HEAD @ version date + #hash = "sha256-ES8zZ9s6wGcqw60NoN4tZf/Dq/sBvl+UDYrXuOgfMxI="; }; + nativeCheckInputs = [pytestCheckHook]; } diff --git a/pkgs/by-name/libresoc/soc.nix b/pkgs/by-name/libresoc/soc.nix index a27c28783..b65aa4291 100644 --- a/pkgs/by-name/libresoc/soc.nix +++ b/pkgs/by-name/libresoc/soc.nix @@ -14,9 +14,12 @@ with python39Packages; pname = "soc"; version = "unstable-2024-03-31"; - src = fetchgit { - url = "https://git.libre-soc.org/git/soc.git"; - sha256 = "sha256-yJshQYf8V0CB2vPCmWLlnxXMhi/sPXiLKzOn6cqgmxw="; + # mirror of https://git.libre-soc.org/git/soc.git + src = fetchFromGitHub { + owner = "Libre-SOC-mirrors"; + repo = "soc"; + rev = "2a66fe18cd77dd5533c65930d1b241cf6faac455"; # HEAD @ version date + #hash = "sha256-yJshQYf8V0CB2vPCmWLlnxXMhi/sPXiLKzOn6cqgmxw="; fetchSubmodules = false; };