5 ms·
Kākāpō – A web bundler for Nix strings with context
- oDot 3y ago[flagged]
- deleted 3y ago[deleted]
- colordrops 3y agoI would be completely happy with Nix as a universal build and deploy language.
- MadnessASAP 3y agoIt is amazing what the Nix team has built. It's horribly complex, especially once you start peering behind the nixpkgs curtain, and yet it works incredibly well and is almost universally adaptable. I've got my 2 personal machines as well as my homelab and a few other appliances all running off of it now.
- pxc 3y agoMe, too, more or less. I think there's room for improvement, but Nix is a nice language for that niche.
- imiric 3y agoThe ideas of Nix are very powerful, but the experience of using it can be frustrating. It desperately needs a UX overhaul, or at the very least a distro that wraps it into a user-friendly package. I would happily adopt it as a build and deploy system if the UX was improved, but I currently hesitate to recommend it to my teammates because of its rough edges and steep learning curve.
- whateveracct 3y agoThere's been several UX improvements merged lately. For instance, better error messages upon runtime type errors iirc. As is, Nix isn't actually hard if people learn how to learn. I see coworkers have trouble with it but don't even know how to use the repl to debug. I always debug their issues in an instant. So docs and education would be my focus.
- colordrops 3y agoI've used it over a year and haven't had to use the repl. What are examples of problems you've found the repl to be useful for solving?
- hamandcheese 3y agoThis is pretty neat. I wonder if the idea could be extended more generally to "un-nixify" packages - i.e. replace references to the nix store with relative paths. I can envision some applications for distributing packages for non-nix systems while still relying on nix to build them.
- tadfisher 3y agoThere's an older attempt at a universal Nix bundler here: https://github.com/matthewbauer/nix-bundle https://github.com/matthewbauer/nix-bundle The flake schema has a "bundler" output that can point to an executable like this to bundle a flake's outputs for any supported target. Not sure about the state of the art, though.
- hamandcheese 3y agoMy main gripe with this (and guix mentioned in a sibling comment) is lack of macOS support. I believe macOS support is a large part of why Nix is able to become so popular.
- whateveracct 3y agoThere's this, which does work on macOS https://github.com/3noch/nix-bundle-exe https://github.com/3noch/nix-bundle-exe I've never tried it out though.
- mik1998 3y agoGuix has this feature - guix pack https://guix.gnu.org/manual/en/html_node/Invoking-guix-pack.html https://guix.gnu.org/manual/en/html_node/Invoking-guix-pack....
- xyzzy_plugh 3y agoNot really. Guix only really targets Linux and it achieves relocatable packs by virtualizing the filesystem in a variety of extremely non-portable ways. You can do this with Nix as well, of course, Guix wins no points here. Neither supports non-absolute paths which is the crux of the issue.
- blueflow 3y agoHas someone german-speaking looked over the name before it got selected?
- deleted 3y ago[deleted]
- elpocko 3y agoIt means "poopy butt" in german. I giggle every time I hear about the Kakapo bird.
- elliottkember 3y agoGiven the bird's character – I think it would appreciate this!
- timClicks 3y agoThe vowels are different. So, although they look the same, the words wouldn't sound the same.
- mrlonglong 3y agoKakapo is also Maori for a very cute little flightless parrot native to the New Zealand islands.
- baconhigh 3y agoIf you mean Kākāpō - yes it is! I saw this is already a Github issue for this project - but use of a Māori bird name is considered tapu (holy or sacred) to Māori. Hopefully that doesn't distract from the project, the developer should probably consider the implications of choosing such a name (it may look like cultural appropriation). Kia ora!
- hatefulmoron 3y agoThe author/developer lives in New Zealand. I don't see how it's 'cultural appropriation', to any extent that naming a programming project after a bird can even be cultural appropriation.
- mrlonglong 3y agoThe developer might be Maori. In which case, that's very cool indeed.
- baconhigh 3y agothey would be well placed to explain their whakapapa and reasons for choosing the name, nē?
- deleted 3y ago[deleted]
- hatefulmoron 3y agoEven if the developer isn't, it's no problem at all. The word is to be used and enjoyed by all New Zealanders, and anybody else for that matter.
- kish10 3y agoYou maybe interested in a project I've been working on (nix-server-tools): https://github.com/kish10/nix-server-tools https://github.com/kish10/nix-server-tools. The goal is to create tools using Nix to make it easy to deploy applications on a server. ---- So far the project can: - Create docker-compose files that: deploy a `Caddy` server & server applications in a reverse proxy through the Docker bridge network. ---- This way Caddy & Let's Encrypt takes care of TSL certificates, while thanks to Nix & Docker we simply need to create docker-compose files. (for an easy deployment) - Deploy a `paperless-ngx` application that backups files using `borgbackup` & sends an error email when the backup fails. ---- Next week I plan to add: - A Nix generated `cloud-init.yaml` file to make it easy to initialize & setup new servers (for easy & quick deployment of applications that need to run on additional servers). ---- Examples: - Deploying a "hello-test-app": https://github.com/kish10/nix-server-tools/blob/main/reverse_proxy/example_server_deployments/hello_test/flake.nix https://github.com/kish10/nix-server-tools/blob/main/reverse... - Deploying a "hello-test-app" & "paperless-ngx -- with borgbackup & error emails": https://github.com/kish10/nix-server-tools/blob/main/reverse_proxy/example_server_deployments/paperless_ngx/flake.nix https://github.com/kish10/nix-server-tools/blob/main/reverse... ---- I just started open sourcing the code this week, so there isn't a lot of documentation & examples. I could definitely use feedback & contributions, so I'd appreciate it if you would take a look.