Coder Social home page Coder Social logo

proc-flake's Introduction

proc-flake

A flake-parts Nix module for running multiple processes in a dev shell.

honcho is used to launch the processes.

Usage

NOTE: this module requires the flake-root module.

proc.groups.run.processes = {
  haskell.command = "${lib.getExe pkgs.haskellPackages.ghcid}";
  tailwind.command = "${lib.getExe pkgs.haskellPackages.tailwind} -w -o ./static/tailwind.css './src/**/*.hs'";
};

This gives a config.proc.groups.run.package derivation that you can put in the nativeBuildInputs of devShell for availability in the shell.

For better discoverability, consider using this in conjunction with the mission-control module.

Examples

Credits

The idea for this module came largely from Domen Kožar's devenv project.

Alternatives

For a similar module that uses a more advanced tool called process-compose, see https://github.com/Platonic-Systems/process-compose-flake

proc-flake's People

Contributors

srid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

proc-flake's Issues

Rename this module

Instead of the more generic proc-flake call it using a more specialized name, like procfile-flake.

Instead of a verbose proc.groups.run.processes option hierarchy use perhaps procfiles.run.processes.

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.