-
Notifications
You must be signed in to change notification settings - Fork 248
Unable to build hackage package derive-storable-plugin #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Being able to override a haskell.nix haskell package would definitely be a nice workaround (#510). But seems to be that this isn't supported yet. |
Generally, hackage packages should work with Overriding a |
setting I first ran into a weird problem were it misplaced the haskell
Which got fixed by specifying For completeness this is our working default.nix: { # Fetch the latest haskell.nix and import its default.nix
haskellNix ? import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/ef6ca0f431fe3830c25cb2d185367245c1cce894.tar.gz") {}
# haskellNix ? import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {}
# # For LLVM
# , enableLLVMAssertions ? true # TODO: Fix
, compiler ? "ghc884"
}:
let
# haskell.nix provides access to the nixpkgs pins which are used by our CI,
# hence you will be more likely to get cache hits when using these.
# But you can also just use your own, e.g. '<nixpkgs>'.
nixpkgsSrc = haskellNix.sources.nixpkgs-2003;
# haskell.nix provides some arguments to be passed to nixpkgs, including some
# patches and also the haskell.nix functionality itself as an overlay.
nixpkgsArgs = haskellNix.nixpkgsArgs;
telomare_jumper = pkgs.stdenv.mkDerivation {
name = "telomareJumper";
src = ./cbits;
buildInputs = [ pkgs.boehmgc ];
};
telomareOverlays = [ (self: super: {
jumper = telomare_jumper;
gc = self.boehmgc;
llvm-config = self.llvm_9;
alex = self.haskellPackages.alex;
}) ];
# import nixpkgs with overlays
pkgs = (import nixpkgsSrc (nixpkgsArgs // { overlays = nixpkgsArgs.overlays ++ telomareOverlays;}));
in
pkgs.haskell-nix.cabalProject {
src = pkgs.haskell-nix.cleanSourceHaskell {
src = ./.;
name = "telomare";
};
compiler-nix-name = compiler;
pkg-def-extras = with pkgs.haskell.lib; [
(hackage: {
llvm-hs = hackage.llvm-hs."9.0.1".revisions.default;
llvm-hs-pure = hackage.llvm-hs-pure."9.0.0".revisions.default;
})
];
# modules = [];
modules = [
{ reinstallableLibGhc = true; }
];
} the |
Firstly, hello and thank you for your time on this. I really like haskell.nix: it has make a lot of things simpler. <3
To the business in hand:
Currently unable to build
derive-storable-plugin
Compile error:
Warning worth noting:
Got the same error trying to build another project with a local reference to this package in
project.cabal
Successful ways of building this package:
On channel nixos-20.09:
Was also able to build using a standard nix-shell provided by haskell.nix with
cabal new-build
Was also able to build with
nix-build
usingpkgs.haskellPackages.callPackage
on the output ofcabal2nix cabal://derive-storable-plugin-0.2.3.0
on channel nixos-20.03Also tried with ghc865 and cabal 3.0.0.0 and with derive-storable-plugin-0.2.2.0 (channel nixos-20.03)
If I'm interpreting this right, hackage also marks it as healthy: https://matrix.hackage.haskell.org/#/package/derive-storable-plugin
Thanks!
The text was updated successfully, but these errors were encountered: