-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: php <= 7.4 libtool sha256 #306
Conversation
I couldn't test this myself since I do not own a Mac, but I trust you on this one. |
@drupol Thanks! However, I do not own a Mac too. The problem was that it did not even allow to build it on Linux, specifically in NixOS |
Ho. That's weird because I can't reproduce the issue. What's the command you were using to trigger the issue? |
|
I was able to reproduce it again with this {
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgsMySQL57.url = "github:NixOS/nixpkgs/611bf8f183e6360c2a215fa70dfd659943a9857f";
flake-utils.url = "github:numtide/flake-utils";
# phps.url = "github:thelissimus/nix-phps"; # my fork where I replaced the sha256
phps.url = "github:fossar/nix-phps/58efd805e85ee2b0f332c3e4caaa19786de2f20e"; # this repo before merging my fork
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;
};
}];
};
}
);
} Output of
I, initially, thought it was because that |
I get the same error even when I don't use devenv with impure flag and instead use regular devShells.default = pkgs.mkShell {
buildInputs = packages;
}; |
So basically, in your flake, you're using
I should also have the issue, but I have not. I also took the liberty to rewrite your flake:
|
I evaluated the flake on a whole another machine, where I never ran
|
Which kind of machine, a mac ? |
I am getting the same hash locally:
Since I have the old derivation as well, I can just look at the outputs:
Looks like $ diff -u /nix/store/ma5w6zj827xb862j6lkzl4c6hnin3xhy-d016434ad33284dfaceb8d233351d34356566d7d.patch /nix/store/20v370iygvj45vw0k46dnr56fdalbvy7-d016434ad33284dfaceb8d233351d34356566d7d.patch
--- /nix/store/ma5w6zj827xb862j6lkzl4c6hnin3xhy-d016434ad33284dfaceb8d233351d34356566d7d.patch 1970-01-01 01:00:01.000000000 +0100
+++ /nix/store/20v370iygvj45vw0k46dnr56fdalbvy7-d016434ad33284dfaceb8d233351d34356566d7d.patch 1970-01-01 01:00:01.000000000 +0100
@@ -1,5 +1,5 @@
diff --git a/build/libtool.m4 b/build/libtool.m4
-index 099a8799352c..1faed63a8c60 100644
+index 099a8799352ce..1faed63a8c60a 100644
--- a/build/libtool.m4
+++ b/build/libtool.m4
@@ -340,7 +340,7 @@ We should probably switch back to |
No, a Lenovo laptop running NixOS |
fixes #305
I tested it locally, everything was fine.