I have NixOS, but am trying to install my existing packages in the home
folder of a Debian machine too for work. I'm stuck compiling GHC 8.0.1...
the current nixpkgs-unstable version gives a hash mismatch, which I "fixed"
like so:

diff --git a/pkgs/development/compilers/ghc/8.0.1.nix
index e607ef7..2fb6afe 100644
--- a/pkgs/development/compilers/ghc/8.0.1.nix
+++ b/pkgs/development/compilers/ghc/8.0.1.nix
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {

     # Fix https://ghc.haskell.org/trac/ghc/ticket/12130
-    (fetchFilteredPatch { url =
sha256 = "0syaxb4y4s2dc440qmrggb4vagvqqhb55m6mx12rip4i9qhxl8k0"; })
+    (fetchFilteredPatch { url =
sha256 = "1z30999wgv1qnsd5kypj4lw33nj0yn0k0bax0yciqxnl1py0s87s"; })
     (fetchFilteredPatch { url =
sha256 = "06zvlgcf50ab58bw6yw3krn45dsmhg4cmlz4nqff8k4z1f1bj01v"; })
   ] ++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch;

But I think that might have been a mistake, because now patch fails to

building path(s)
unpacking sources
unpacking source archive
source root is ghc-8.0.1
setting SOURCE_DATE_EPOCH to timestamp 1463503024 of file
patching sources
applying patch
patching file compiler/main/SysTools.hs
Hunk #1 succeeded at 422 (offset 8 lines).
Hunk #2 succeeded at 944 (offset 8 lines).
applying patch
patching file rts/Linker.c
Hunk #1 succeeded at 5855 (offset 174 lines).
applying patch
patching file compiler/rename/RnPat.hs
Hunk #1 succeeded at 636 (offset 1 line).
Hunk #2 succeeded at 648 (offset 1 line).
patching file testsuite/tests/th/T12130.hs
patching file testsuite/tests/th/T12130a.hs
can't find file to patch at input line 97
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
|index 75364dc..bd59c4e 100644
|--- a/testsuite/tests/th/all.T
|+++ b/testsuite/tests/th/all.T
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
builder for
failed with exit code 1

Is GHC broken for anyone else? And if not, what makes my setup special? Am
I being redirected to the wrong patch url somehow?
nix-dev mailing list

Reply via email to