Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Apr 29, 2024
1 parent 33866b0 commit 46993f0
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 24 deletions.
8 changes: 5 additions & 3 deletions pkgs/by-name/libresoc/ieee754fpu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
9 changes: 6 additions & 3 deletions pkgs/by-name/libresoc/libresoc-c4m-jtag.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
9 changes: 6 additions & 3 deletions pkgs/by-name/libresoc/nmutil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
9 changes: 6 additions & 3 deletions pkgs/by-name/libresoc/openpower-isa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions pkgs/by-name/libresoc/pinmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
9 changes: 6 additions & 3 deletions pkgs/by-name/libresoc/power-instruction-analyzer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 7 additions & 3 deletions pkgs/by-name/libresoc/pytest-output-to-files.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
9 changes: 6 additions & 3 deletions pkgs/by-name/libresoc/soc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 46993f0

Please sign in to comment.