about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-03-28 12:31:40 -0400
committerShea Levy <shea@shealevy.com>2018-03-28 12:31:40 -0400
commitfbe8deb2827759f459815da3f06e0e3353019cb8 (patch)
treedcd7f8ec3b2b6947b4b344c7b8804a18287d0322 /pkgs/development/compilers/ghc
parent3d12d78ebcc297ab08aabddaec84f10ccff2dcb3 (diff)
downloadnixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar.gz
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar.bz2
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar.lz
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar.xz
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.tar.zst
nixlib-fbe8deb2827759f459815da3f06e0e3353019cb8.zip
ghc: Use persistent URL for abi-depends determinism patch.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/abi-depends-determinism.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/abi-depends-determinism.nix b/pkgs/development/compilers/ghc/abi-depends-determinism.nix
index afa272d03a8e..bc803b74617f 100644
--- a/pkgs/development/compilers/ghc/abi-depends-determinism.nix
+++ b/pkgs/development/compilers/ghc/abi-depends-determinism.nix
@@ -2,8 +2,10 @@
 # cached abi-depends fields in package databases, modified to only
 # contain hunks that exist in distribution tarballs.
 { fetchpatch, runCommand }: let
-  base = fetchpatch { # Non-determinism in cached abi-depends fields
-    url = https://phabricator-files.haskell.org/file/data/4pqrbo5b62sifktfbrls/PHID-FILE-4g4zjiqlfxmmlaos7lz7/D4159.diff;
+  base = fetchpatch rec { # Non-determinism in cached abi-depends fields
+    # Originally https://phabricator-files.haskell.org/file/data/4pqrbo5b62sifktfbrls/PHID-FILE-4g4zjiqlfxmmlaos7lz7/D4159.diff
+    url = "http://tarballs.nixos.org/sha256/${sha256}";
+    name = "D4159.diff";
     sha256 = "0b8a08sisf1swmarm6nh9rgw7cpzi2rwdzvrd6ny49c7wk0f7x4b";
   };
 in runCommand base.name {}