Website - Youtube - About - Talks - Books - Packages - RSS

Toy Post: Per-Post Nix Dependencies

nix
Author

Bruno Rodrigues

Published

December 31, 2025

This is a toy post demonstrating per-post Nix dependencies.

This post has a corresponding 2025-12-31-toy-post.nix file that adds the purrr package to the environment.

library(purrr)

# Use purrr to demonstrate it's available
result <- map_dbl(1:5, ~ .x^2)
print(result)
[1]  1  4  9 16 25

The purrr package is not in the base posts/default.nix, but it’s available here because of the post-specific .nix file!