Skip to content

Instantly share code, notes, and snippets.

View ninioArtillero's full-sized avatar

Xavier Góngora ninioArtillero

View GitHub Profile
@ninioArtillero
ninioArtillero / BootEuterpea.hs
Created April 15, 2024 22:37
A simple reproducible script for launching a ghci session with Euterpea and HSoM libraries loaded using Nix
#! /usr/bin/env nix-shell
#! nix-shell --pure -i ghci
#! nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [ pkgs.Euterpea pkgs.HSoM ])"
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/380be19fbd2d9079f677978361792cb25e8a3635.tar.gz
{-
This script loads an interactive environment for music eDSL Euterpea,
with all modules from the Haskell Scholl of Music (HSoM) library exposed.
IMPORTANT: Only first call will take a long time to load
as long as the nix store is not garbage collected, as when using