Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created August 25, 2020 09:31
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 dminuoso/e86d5c75434c36978a054eb138ff151f to your computer and use it in GitHub Desktop.
Save dminuoso/e86d5c75434c36978a054eb138ff151f to your computer and use it in GitHub Desktop.
{
pkgs ? import <nixpkgs> {}
}:
let
overrides = self: super: let lib = pkgs.haskell.lib; in {
freyja = self.callCabal2nix "freyja" ./. {};
freyja-api = self.callCabal2nix "freyja-api" ./freyja-api {};
servant-prometheus = lib.dontCheck (self.callCabal2nix "servant-prometheus" ./servant-prometheus {});
http-media = lib.dontCheck super.http-media;
servant = lib.dontCheck super.servant;
ip = lib.dontCheck super.ip_1_7_1;
primitive = super.primitive_0_7_0_0;
wide-word = lib.dontCheck super.wide-word;
bytebuild = lib.dontCheck super.bytebuild;
};
hPkgs = pkgs.haskellPackages.override { inherit overrides; };
in
with hPkgs;
{ inherit
freyja
freyja-api;
}
λ ~/wobcom/projects/freyja/ development* nix-build --show-trace ~/wobcom/projects/freyja
error: while evaluating the attribute 'buildInputs' of the derivation 'freyja-0.2.0.0' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'freyja-api-0.2.0.0' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'aeson-1.4.6.0' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'attoparsec-0.13.2.3' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'scientific-0.3.6.2' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'tasty-ant-xml-1.1.6' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'generic-deriving-1.12.4' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'hspec-2.7.1' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'hspec-core-2.7.1' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'tf-random-0.5' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'primitive-0.7.0.0' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
while evaluating the attribute 'buildInputs' of the derivation 'base-orphans-0.8.2' at /nix/store/i3vq0kyw9wf7py4nx68v5029pf7dzir6-nixpkgs-20.03.2843.14006b724f3/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:291:3:
infinite recursion encountered, at undefined position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment