[Nix-dev] Integration of Haste packages

Bas van Dijk v.dijk.bas at gmail.com
Thu Nov 6 14:43:40 CET 2014


Hi Ryan,

Thanks for your efforts to get ghcjs integrated. I would like to try
out your fork by building a little ghcjs-based project. I generated
the following foo.nix file based on my cabal file using cabal2nix:

{ cabal, aeson, baseUnicodeSymbols, dataDefault, text
, unorderedContainers
, ghcjsJquery
}:

cabal.mkDerivation (self: {
  pname = "foo";
  version = "0.0.1";
  src = ./.;
  isLibrary = false;
  isExecutable = true;
  buildDepends = [
    aeson baseUnicodeSymbols dataDefault  text
    unorderedContainers
    ghcjsJquery
  ];
  meta = {
    license = self.stdenv.lib.licenses.unfree;
    platforms = self.ghc.meta.platforms;
  };
})

Now I would like to write a default.nix which will build this package
using ghcjs.

How should I go about doing that?

Any pointers are appreciated. Thanks!

Bas

On 25 September 2014 23:21, Ryan Trinkle <ryan.trinkle at gmail.com> wrote:
> Hi Thomas,
>
> I recently got ghcjs integrated, so it may be helpful to take a look at my
> patches.  They're available at https://github.com/ryantrinkle/nixpkgs and
> are making their way upstream thanks to the efforts of Charles Strahan
> (https://github.com/cstrahan).
>
>
> Ryan
>
> On Thu, Sep 25, 2014 at 5:16 PM, Thomas Strobel <ts468 at cam.ac.uk> wrote:
>>
>> Hi!
>>
>> I'm thinking of working on the integration of Haste packages into NixOS
>> on the weekend. I want to hook onto the package management of Haskell,
>> and adapt it for Haste.
>>
>> Now, I wanted to ask if someone already started to work on that or had
>> any ideas or thoughts about it. If so, it would be nice if you would let
>> me know about it.
>>
>>
>> Many thanks,
>> Thomas
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>


More information about the nix-dev mailing list