Skip to content

Instantly share code, notes, and snippets.

@asheshambasta
Last active April 16, 2020 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asheshambasta/59f3877f5837c1daa10797d5cc1d7338 to your computer and use it in GitHub Desktop.
Save asheshambasta/59f3877f5837c1daa10797d5cc1d7338 to your computer and use it in GitHub Desktop.
let
config = {
packageOverrides = pkgs: with pkgs.haskell.lib; rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = hpnew: hpold: rec {
amazonka =
let drv = unmarkBroken hpold.amazonka;
# src = builtins.fetchGit { url = "ssh://git@github.com/brendanhay/amazonka.git"; rev = "43ddd87b1ebd6af755b166e16336259ec025b337"; };
src = builtins.fetchTarball "https://github.com/brendanhay/amazonka/tarball/43ddd87b1ebd6af755b166e16336259ec025b337";
withNewSrc = overrideSrc drv { inherit src; };
in withNewSrc # overrideCabal withNewSrc (d: { patches = []; })
;
amazonka-core = unmarkBroken hpold.amazonka-core;
};
};
};
};
in (import <nixpkgs> { inherit config; }).haskellPackages.amazonka
╰─$ nix-build amazonka.nix 1 ↵
these derivations will be built:
/nix/store/ipk1if4i892ilyrrmigbfsz24f5zjmrz-amazonka-1.6.1.drv
building '/nix/store/ipk1if4i892ilyrrmigbfsz24f5zjmrz-amazonka-1.6.1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/q4q62h0ab7ag0k161cgqknbp7s9qxfhd-ghc-8.6.5.
unpacking sources
unpacking source archive /nix/store/4gm50y3b0jp0ad9ih4rrr52nc5s9nv87-source
source root is source
patching sources
applying patch /nix/store/6h6w86svxrnzw4ry7cpdf3dc8sxm6wq3-amazonka-Allow-http-client-0.6.patch
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 657b70d174fe5cb61e56cb8b9c5e57f1ec216f2b Mon Sep 17 00:00:00 2001
|From: Mikhail Glushenkov <mikhail.glushenkov@gmail.com>
|Date: Wed, 10 Apr 2019 17:42:57 +0100
|Subject: [PATCH] Allow http-client 0.6.*.
|
|Changelog doesn't list any silently breaking semantic changes.
|---
| amazonka/amazonka.cabal | 2 +-
| core/amazonka-core.cabal | 2 +-
| 2 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/amazonka/amazonka.cabal b/amazonka/amazonka.cabal
|index e86713f11c..81c4cb7e48 100644
|--- a/amazonka.cabal
|+++ b/amazonka.cabal
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
builder for '/nix/store/ipk1if4i892ilyrrmigbfsz24f5zjmrz-amazonka-1.6.1.drv' failed with exit code 1
error: build of '/nix/store/ipk1if4i892ilyrrmigbfsz24f5zjmrz-amazonka-1.6.1.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment