GithubHelp home page GithubHelp logo

cumber / intero-nix-shim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michalrus/intero-nix-shim

0.0 2.0 0.0 36 KB

Intero Haskell IDE with Nix instead of Stack

License: Apache License 2.0

Emacs Lisp 2.23% Makefile 10.80% Haskell 67.44% Nix 12.72% Shell 4.50% C 2.31%

intero-nix-shim's Introduction

Build Status

intero-nix-shim

High-level view

You need to have default.nix and shell.nix defined for your project, see https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages.

Emacs’ intero-stack-executable variable needs to point to /nix/store/…-intero-nix-shim-…/bin/intero-nix-shim.

You can set it to just "intero-nix-shim", if it’s available in your global PATH. (By default, that variable is set to "stack".)

Simple how to

There are several ways to achieve the above.

Probably, the simplest one would be to install intero-nix-shim globally in your PATH, e.g., if you’re on nixos-17.03:

# /etc/nixos/configuration.nix

{
  environment.systemPackages = [
    haskellPackages.intero-nix-shim
  ];
}

… and set intero-stack-executable to just "intero-nix-shim" in .dir-locals.el for your project:

;; your-project/.dir-locals.el

((nil . ((intero-stack-executable . "intero-nix-shim"))))

Warning: if you choose the .dir-locals.el way, Emacs has a security mechanism to prevent untrusted code execution. You will have to accept this setting. If you use global-intero-mode, Intero will start loading before you manage to whitelist this setting. Therefore, the first time, it will fail. Just do M-x intero-restart.

intero-nix-shim's People

Contributors

cumber avatar michalrus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.