Nix and Framework-X #132
drupol
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@drupol Thanks for sharing 👍 Looks great, the more options the better! Maybe this is also something for the future of Framework X. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been playing with Nix since a couple of months and I had the idea to test how to package a PHP application.
Nix consists of a package manager and a language to describe packages for the said manager. It features reproducible builds, cross-distro and -platform compatibility, binary caching, as well as a large collection of packages maintained by thousands of contributors.
Nix can be installed on any Linux, Windows and MacOS.
Flakes is the upcoming features of Nix, and I'm currently playing with it since it's very stable.
If you want to give it a try with clue/framework-x, you just to do:
nix run github:drupol/framework-x/feat/use-nix
This will run the
clue/framework-x
demo locally and it will be available at http://127.0.0.1:8080/If you're curious, you can check the things I had to do in order to get this working in this PR: drupol#1
Docker
To build a docker image containing everything to run the application, do:
PS: I also did the same for the symfony/demo:
nix run github:drupol/demo/feat/use-nix
Let me know about what you think!
Beta Was this translation helpful? Give feedback.
All reactions