Skip to content

Instantly share code, notes, and snippets.

@ublubu
ublubu / configuration.nix
Created November 14, 2016 05:24
current nixos config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
#### Description :octocat:
flycheck haskell can't find dependencies for stack project
#### Reproduction guide :beetle:
- `stack setup` and `stack build` and `stack test` a project with multiple modules - e.g. https://github.com/ublubu/shapes
- Start Emacs
- open a source file in one module that depends on another module in the project - e.g. shapes/src/Physics/Broadphase/Aabb.hs
- flycheck complains that it can't find shapes-math
Alternate steps:
- per haskell layer troubleshooting doc: in user-config (setq flycheck-haskell-stack-ghc-executable "/Users/krilee/wrapped-stack")
@ublubu
ublubu / default.nix
Last active August 29, 2015 14:24
tile-rider nix-shell stuff
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc784" }:
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./tile-rider.nix { }
@ublubu
ublubu / configuration.nix
Created July 4, 2015 22:30
nixos config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
imports =