Skip to content

Instantly share code, notes, and snippets.

@wavewave
Created January 30, 2015 11:27
Show Gist options
  • Save wavewave/5bac4d74d712a90ab815 to your computer and use it in GitHub Desktop.
Save wavewave/5bac4d74d712a90ab815 to your computer and use it in GitHub Desktop.
my config.nix
{
packageOverrides = pkgs: rec {
#
hepNixOverlay =
let self = pkgs.callPackage /home/wavewave/repo/src/hep-nix-overlay {};
in pkgs.recurseIntoAttrs self;
#
yesodEnv =
let hsenv = with (pkgs // pkgs.haskellPackages); ghcWithPackages
(self : [ cabalInstall
hjsmin persistentSqlite split hastache
yesod yesodStatic cryptohashConduit classyPreludeConduit
]);
in pkgs.myEnvFun {
name = "yesod";
buildInputs = with pkgs; [ hsenv hepNixOverlay.FeynHiggs ];
extraCmds = ''
$(grep export ${hsenv.outPath}/bin/ghc)
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment