include-env: Include the value of an environment variable at compile time

[ bsd3, development, library ] [ Propose Tags ]

Embed secrets (e.g. API keys) inside production artifacts at compile time.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,, (info)
Change log
Dependencies base (>=4.7 && <5), containers, template-haskell (>=2.14), th-lift-instances [details]
License BSD-3-Clause
Copyright (c) 2021 Marco Zocca, UnfoldML AB
Author Marco Zocca
Category Development
Home page
Source repo head: git clone
Uploaded by ocramz at 2022-01-08T16:08:15Z
Distributions NixOS:
Downloads 874 total (29 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-01-08 [all 1 reports]

Readme for include-env-

[back to package description]


Embed secrets (e.g. API keys) from environment variables inside production artifacts without checking them into the repository.

This use case is relevant e.g. in continuous integration (CI) settings.


In GitHub each private repository can have a number of secrets, which can be conveniently changed without being exposed as needed; GitHub Actions can pass repository secrets in as environment variables during any step, which is where this library comes in handy.