https://github.com/adisbladis/kakapo Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} adisbladis / kakapo Public * Notifications * Fork 1 * Star 26 * A Nix web bundler because why not 26 stars 1 fork Branches Tags Activity Star Notifications * Code * Issues 1 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights adisbladis/kakapo This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 4 Commits .github/workflows .github/ workflows templates/htmlNix templates/ htmlNix README.md README.md bundle-tree.py bundle-tree.py default.nix default.nix flake.lock flake.lock flake.nix flake.nix make-bundle.py make-bundle.py test.nix test.nix View all files Repository files navigation * README Kakapo A web bundler for Nix strings with context. Named after the flightless parrot. Motivation Because I'm unwell and and think cursed hacks like //users/sterni/nix /html/README.md are cool and would like to make it's usage more practical. Basic usage * Writing a bundle from a derivation let indexHTML = writeText "index.html" ''

Welcome!

''; webRoot = runCommand "webroot" { } '' mkdir $out cp ${indexHTML} $out/index.html ''; in kakapo.makeBundle webRoot; * Bundling a file tree from an attribute set kakapo.bundleTree "my-webroot" { } { "index.html" = ''

Welcome!

''; } Use with `htmlNix' Check out ./templates/htmlNix. About A Nix web bundler because why not Resources Readme Activity Stars 26 stars Watchers 1 watching Forks 1 fork Report repository Releases No releases published Packages 0 No packages published Languages * Nix 52.6% * Python 47.4% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.