Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong sha256 hash for php73 libtool patch #305

Closed
thelissimus opened this issue Nov 3, 2023 · 0 comments · Fixed by #306
Closed

Wrong sha256 hash for php73 libtool patch #305

thelissimus opened this issue Nov 3, 2023 · 0 comments · Fixed by #306

Comments

@thelissimus
Copy link
Contributor

The error:

error: hash mismatch in fixed-output derivation '/nix/store/cbw81xmg63889yvk52zmnwicqlzk9gq0-d016434ad33284dfaceb8d233351d34356566d7d.patch.drv':
         specified: sha256-x0vEcoXNFeQi3re1TrK/Np9AH5dy3wf95xM08xCyGE0=
            got:    sha256-Th1ZhC8t84MACxosoYud1LGDd5DtYe36Ctk1Ocjcu1s=
error: 1 dependencies of derivation '/nix/store/yxa5yj0f5xiz0614h9bnrf01y5zswfzi-php-7.3.33.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qqkwr3zph3achkkwl8zh7xfvb3gcpj82-php-with-extensions-7.3.33.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9khycqnlnrdl929bbzmabnc3zmypqxc3-devenv-profile.drv' failed to build
error: 1 dependencies of derivation '/nix/store/byjk8rqlw8b396k8a4p1jgl89nr8gj1c-devenv-shell-env.drv' failed to build

The hash is here:

sha256 = "sha256-x0vEcoXNFeQi3re1TrK/Np9AH5dy3wf95xM08xCyGE0=";

My flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nixpkgsMySQL57.url = "github:NixOS/nixpkgs/611bf8f183e6360c2a215fa70dfd659943a9857f";
    flake-utils.url = "github:numtide/flake-utils";
    phps.url = "github:fossar/nix-phps";
    devenv.url = "github:cachix/devenv/v0.6.3";
  };
  outputs =
    { nixpkgs
    , nixpkgsMySQL57
    , flake-utils
    , devenv
    , phps
    , ...
    } @ inputs:
    flake-utils.lib.eachDefaultSystem (system:
    let
      pkgs = import nixpkgs { localSystem = { inherit system; }; };
      pkgsMySQL57 = import nixpkgsMySQL57 { localSystem = { inherit system; }; };
      pkgsPhp = phps.packages.${system};
      packages = [
        pkgsPhp.php73
        pkgsPhp.php73.packages.composer
        pkgsMySQL57.mysql57
      ];
    in
    {
      devShells.default = devenv.lib.mkShell {
        inherit inputs pkgs;
        modules = [{
          inherit packages;
          services.mysql.enable = true;
        }];
      };
    }
    );
}

Any ideas how I can override the hash locally for the time being? I need php73 asap.

Also, thanks for supporting legacy PHP versions! You are a life saver!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant