Skip to content

bitsoex/nix-toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nix-toolchain

Experiments using Nix to manage project toolchains.

Installing Nix

This project uses Nix and Nix Flakes to manage toolchains. If you don't have Nix installed, you can install it using the Determinate Systems installer:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Usage

In a project that needs a toolchain, add flake.nix

{
  description = "A Java/Gradle Project";

  inputs = {
    bitso.url = "github:bitsoex/nix-toolchain";
  };

  outputs =
    { bitso, ... }:
    bitso.lib.mkProject {
      java = {
        enable = true;
        version = "17";
        gradle.enable = true;
      };
      redis.enable = true;
    };
}

Then to get a shell run nix develop. By default, Nix shells use bash. If you want zsh, you can run nix develop -c zsh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published