Created
January 2, 2021 05:08
-
-
Save tbenst/838b0a41a5d9e27637d9ab6c31b254db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ # Fetch the latest haskell.nix and import its default.nix | |
haskellNix ? import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {} | |
# 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-2009 | |
# 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 | |
# import nixpkgs with overlays | |
, pkgs ? import nixpkgsSrc nixpkgsArgs | |
}: pkgs.haskell-nix.project { | |
# 'cleanGit' cleans a source directory based on the files known by git | |
src = pkgs.haskell-nix.haskellLib.cleanGit { | |
name = "tylerbenstercom"; | |
src = ./.; | |
}; | |
# components.exes.postInstall = '' | |
postInstall = '' | |
wrapProgram $out/bin/site \ | |
--set LANG "en_US.UTF-8" \ | |
--set LOCALE_ARCHIVE "${pkgs.glibcLocales}/lib/locale/locale-archive" | |
''; | |
# Specify the GHC version to use. | |
compiler-nix-name = "ghc8102"; # Not required for `stack.yaml` based projects. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment