You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a nix-file for installing hylogen with nix that worked for me:
Save as hylogen.nix, run (without installing) with nix run -f hylogen.nix -c hylide Example.hs, install with nix-env -if hylogen.nix
{pkgs?import<nixpkgs>{},compiler?"default"}:
letsrc=fetchTarball"https://github.com/sleexyz/hylogen/archive/master.tar.gz";oldHaskellPackages=ifcompiler=="default"thenpkgs.haskellPackageselsepkgs.haskell.packages.${compiler};haskellPackages=oldHaskellPackages.override{overrides=hpNew: hpOld: {hylogen=hpNew.callCabal2nix"hylogen""${src}/hylogen"{};hylide=hpNew.callCabal2nix"hylide""${src}/hylide"{};};};myGhc=haskellPackages.ghcWithPackages(ps: withps;[hylogenhylide]);# Wrapper to make hint see the available hylide-invoker=pkgs.stdenv.mkDerivation{name="hylide-invoker";unpackPhase="true";buildInputs=[myGhcpkgs.makeWrapper];buildPhase='' # We need to provide the ghc interpreter (hint) with the location of the ghc lib dir and the package db mkdir -p $out/bin ln -s ${myGhc}/bin/hylide $out/bin/hylide wrapProgram $out/bin/hylide --set GHC_PACKAGE_PATH "${myGhc}/lib/${myGhc.meta.name}/package.conf.d" '';installPhase="echo nothing to install";};inhylide-invoker
We need a wrapper because of haskell-hint/hint#79, so that the hint repl that hylide uses internally can see the installation of hylogen and hylide.
The text was updated successfully, but these errors were encountered:
Here is a nix-file for installing hylogen with nix that worked for me:
Save as
hylogen.nix
, run (without installing) withnix run -f hylogen.nix -c hylide Example.hs
, install withnix-env -if hylogen.nix
We need a wrapper because of haskell-hint/hint#79, so that the hint repl that hylide uses internally can see the installation of hylogen and hylide.
The text was updated successfully, but these errors were encountered: