about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-11-14T17·33+0100
committerProfpatsch <mail@profpatsch.de>2021-11-29T15·41+0000
commitf1a75e88cf42c3da229e49a78b264cb02cca2115 (patch)
tree49191e9bfdcc218b0064066e816871142def0ed9
parent4d57898af43ef88e9a5b4bf30f2c363358500d39 (diff)
fix(third_party/nix-diff): use version which handles non-utf8 drvs r/3112
We had a problem on whitby where decoding of the drv files would fail
with an utf8-decoding error.

This version of nix-diff will leniently input files as utf-8, with
replacement characters if necessary.

Change-Id: I5cb245923c6db0875e63e420cb0783e235b6859f
-rw-r--r--third_party/overlays/haskell/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/third_party/overlays/haskell/default.nix b/third_party/overlays/haskell/default.nix
index d6a178a1e0..ccabe0a90e 100644
--- a/third_party/overlays/haskell/default.nix
+++ b/third_party/overlays/haskell/default.nix
@@ -2,14 +2,22 @@
 # avoid breakage currently present in nixpkgs or to modify package
 # versions.
 
-{ ... }: # This file needs nothing from readTree
+{ lib, ... }:
 
 self: super: # overlay parameters for the nixpkgs overlay
 
 let
-  overrides = hsSelf: hsSuper: with super.haskell.lib; rec {
+  overrides = hsSelf: hsSuper: with super.haskell.lib; {
     generic-arbitrary = appendPatch hsSuper.generic-arbitrary
       [ ./patches/generic-arbitrary-export-garbitrary.patch ];
+
+    nix-diff = overrideSrc hsSuper.nix-diff {
+        src = builtins.fetchTarball {
+          # https://github.com/Gabriel439/nix-diff/pull/50
+          url = "https://github.com/Profpatsch/nix-diff/archive/6234936b26cd144d321039a44cf1791dcfaee026.tar.gz";
+          sha256 = "1i3ahh8jmiayf29i1xrl2n1dkldgdmrllmccxi4yx6hbcd0r2b1l";
+        };
+      };
   };
 in {
   haskellPackages = super.haskellPackages.override {