[Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Ertugrul Söylemez
Hello fellow Haskellers, I have a bunch of local Haskell packages, mostly libraries. The package X lives in the directory `ertes-src/X/main`. There are lots of direct and indirect dependencies between them. My current solution is ad hoc and rather ugly. I'm using the following hand-crafted

Re: [Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Ertugrul Söylemez
I believe Peter's message 87mw5qvj9x@write-only.cryp.to could answer my question. I will give it a try. Hello fellow Haskellers, I have a bunch of local Haskell packages, mostly libraries. The package X lives in the directory `ertes-src/X/main`. There are lots of direct and indirect

Re: [Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Ertugrul Söylemez
I believe Peter's message 87mw5qvj9x@write-only.cryp.to could answer my question. I will give it a try. It does and works well. Thanks anyway! I have a bunch of local Haskell packages, mostly libraries. The package X lives in the directory `ertes-src/X/main`. There are lots of

Re: [Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Jeffrey David Johnson
It's not specific to Haskell (and I haven't tried haskellng at all yet) but for personal packages I have mypkgs/pkgname/default.nix, and then a top-level mypkgs/default.nix: let nixpkgs = import nixpkgs {}; callPkg = nixpkgs.newScope ( nixpkgs //

Re: [Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Ertugrul Söylemez
Hi Jeff, I'm using a similar approach for non-Haskell packages. However, for Haskell packages it doesn't interact well with cabal2nix. Hence my question. I have now solved it the following way in `~/.nixpkgs/config.nix`: haskellPackageOverrides = self: super: let asDarcs = path: