-
-
Save dminuoso/bf93c25b732140943f16a7d839b1ef4f to your computer and use it in GitHub Desktop.
This file contains 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
{ pkgs ? import <nixpkgs> {} | |
, unstable ? import <nixpkgs-unstable> {} | |
, ghc ? "ghc864" | |
}: | |
pkgs.stdenv.mkDerivation rec { | |
name = "odin"; | |
buildInputs = [ | |
pkgs.zlib | |
pkgs.haskell.compiler.${ghc} | |
unstable.cabal-install | |
pkgs.haskellPackages.ghcid | |
pkgs.postgresql | |
pkgs.blas | |
pkgs.liblapack | |
]; | |
shellHook = '' | |
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH | |
export LANG=en_US.UTF-8 | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment