Skip to content
Project environment and command launcher.
Haskell Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.hlint.yaml
LICENSE
README.md
Setup.hs
cabal.project
default.nix
nixon.cabal
nixpkgs.nix
shell.nix

README.md

Nixon

Project environment and command launcher.

Usage

Query for a project and command:

nixon

Simply run a command from the current directory:

nixon run

Build

The build sub-command allows building nixon with a custom configuration:

{-# LANGUAGE OverloadedStrings #-}

import Nixon
import Nixon.Config as Config
import Nixon.Projects.Defaults
import Nixon.Projects.Types

main :: IO ()
main = nixon_with_config config
  where config = default_config { Config.project_types = projects }
        projects = default_projects ++
          [proj ["package.json"] "My JavaScript projects"
           ["prettier" ! desc "Run prettier"]
           ["tslint" ! desc "Run tslint"]
          ]
# nixon build INFLIE OUTFILE
nixon build custom_nixon.hs custom_nixon

NB: build requires a working ghc.

You can’t perform that action at this time.