GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hapistrano/docs/NIX.md at main · stackbuilders/hapistrano

Expand file tree

/

NIX.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
52 lines (36 loc) · 1.45 KB
/

NIX.md

Copy path

File metadata and controls

52 lines (36 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Nix

Requirements

  • Install Nix
  • Enable Flakes permanently
  • Install devenv:

Project Structure

The project uses:

  • Nix Flakes for reproducible builds and development environments
  • stacklock2nix for deriving Nix packages from stack.yaml.lock
  • devenv for creating consistent development environments

Flake.nix

The flake.nix file has the following inputs:

  • nixpkgs: Standard Nix packages repository
  • stacklock2nix: A tool for generating Nix packages from stack.yaml.lock files

The flake outputs:

  • packages.default: The Hapistrano package for each supported system
  • overlays.default: An overlay for integrating Hapistrano into other Nix systems

Development Environments

The project includes a devenv.nix configuration that provides a consistent development environment with all necessary dependencies.

To use devenv:

devenv shell

The devenv configuration includes:

  • Essential tools like git, stack, and zsh
  • System-specific dependencies (e.g., gmp for Linux systems)

Using nix-direnv

If you are using nix-direnv, run:

direnv allow

This will enable the development shell according to the contents of .envrc. Always check the contents of .envrc files before running direnv allow to ensure nothing malicious is executed.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.