Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions pkgs/by-name/ve/verible/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ buildBazelPackage rec {
src = fetchFromGitHub {
owner = "chipsalliance";
repo = "verible";
rev = "${GIT_VERSION}";
tag = GIT_VERSION;
hash = "sha256-/RZqBNmyBZI6CO2ffS6p8T4wse1MKytNMphXFdkTOWQ=";
};

Expand All @@ -53,7 +53,7 @@ buildBazelPackage rec {
{
aarch64-linux = "sha256-jgh+wEqZba30MODmgmPoQn1ErNmm40d16jB/kE2jYPg=";
x86_64-linux = "sha256-kiI/LX0l9ERxItsqiAyl+BP3QnLr0Ly2YVb988M4jVs=";
aarch64-darwin = "sha256-bkw4ErWYblzr3lQhoXSBqIBHjXzhZHeTKdT0E/YsiFQ=";
aarch64-darwin = "sha256-Ivx6KCzAxy6DAffVirb90ZMSGTIS/UXQEhZQebFjV3s=";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error: hash mismatch in fixed-output derivation '/nix/store/9nkz0g7xcppsz1dfdhn4s2z35z9qz671-verible-0.0.3956-deps.tar.gz.drv':
           likely URL: (unknown)
            specified: sha256-Ivx6KCzAxy6DAffVirb90ZMSGTIS/UXQEhZQebFjV3s=
                  got: sha256-bkw4ErWYblzr3lQhoXSBqIBHjXzhZHeTKdT0E/YsiFQ=
        expected path: /nix/store/d30pzvj08p7hlhsb3q4fczhp790cmyn7-verible-0.0.3956-deps.tar.gz
             got path: /nix/store/0d8mncfgdyppca3vgchwkg0qj30lfx2i-verible-0.0.3956-deps.tar.gz

This is most likely a case-sensitivity issue – please don’t break the hash for users with case‐sensitive stores. It should be normalized in postFetch instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, good to know. How exactly should this be done? Is there any related section in the manual?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a matter of figuring out what files are colliding in case/normalization, figuring out if that’s load‐bearing, and then adjusting postFetch to create a result without such collisions. Then the hash is the same regardless.

}
.${system} or (throw "No hash for system: ${system}");
};
Expand Down Expand Up @@ -94,13 +94,18 @@ buildBazelPackage rec {
'';
};

meta = with lib; {
meta = {
description = "Suite of SystemVerilog developer tools. Including a style-linter, indexer, formatter, and language server";
homepage = "https://github.com/chipsalliance/verible";
license = licenses.asl20;
maintainers = with maintainers; [
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
hzeller
newam
];
badPlatforms = [
# ERROR: no such package '@@bazel_tools~xcode_configure_extension~local_config_xcode//':
# BUILD file not found in directory '' of external repository
"aarch64-darwin"
];
};
}
Loading