nix
nix-bundle
nix | nix-bundle | |
---|---|---|
2 | 8 | |
12 | 595 | |
- | - | |
7.9 | 1.0 | |
3 days ago | 2 months ago | |
Nix | Nix | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nix
-
NixOS 21.05 Released
I was able to make the switch over cold turkey after ~9 years of ArchLinux.
By sheer happenstance, I blogged earlier this week about one particular killer feature that doesn't get enough air time: https://news.ycombinator.com/item?id=27344677
My not-flake-yet configuration can be found at https://github.com/rraval/nix
-
Nix solves the package manager ejection problem
> How do NixOS users typically manage software that is not a Nix package
By writing a Nix package for it (I don't mean for this to sound flippant, tone is a bit hard to convey over text).
For example I have this alpha quality rust binary that I'm developing but I also want a stable version installed at the OS level. I write a Nix package and simply compose it into my overall NixOS configuration alongside the more official Nixpkgs: https://github.com/rraval/nix/blob/master/git-nomad.nix
> like a source code tarball where you would traditionally run configure && make && make install?
Nix has a bunch of defaults that make a conventional package like this straightforward.
Here's a package for a vanilla C binary + library that does the `autoreconf && ./configure && make && make install` dance: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/secu...
It's almost a little misleading because the actual steps are largely inherited from the defaults, you can read more about `stdenv.mkDerivation` here: https://nixos.org/guides/nix-pills/fundamentals-of-stdenv.ht...
nix-bundle
-
Our Fastest, Most Beautiful Release Ever: Thunderbird 115 “Supernova” Is Here
I admit that there is an element of, "but I chose an obscure and challenging linux variant, waaah why isn't it supported" here, but (a) there's currently no flatpak and (b) when, for goodness sakes, will major linux projects begin packaging for Nix/NixOS as a matter of course?
It's not hard, and the benefits go far outside merely supporting Nix, as e.g. a flake.nix file would allow this project to generate docker images, and appImage images, as basically afterthoughts. (See e.g. https://github.com/matthewbauer/nix-bundle.)
Nix flake support would also provide a perfectly reproducible build environment, which can help clarify dependencies, and thus help the project build achieve idempotence, but I'll save the full shill for some github issue.
In fact, I'm inclined to roll up my shirtsleeves and help make this real.
-
Container runtime as a static binary?
https://github.com/matthewbauer/nix-bundle perhaps?
-
Pushing/marketing the nix package manager as a Flatpak/Snap competitor?
Another way to approach this would be to advocate Nix as the build system for Flatpak or AppImage. Don't know what the status is of nix-bundle, but if it is possible to turn a Nix package into an AppImage with little extra work that would be ideal.
-
Flaptak (and Snap) is not the future
Nix itself is more focused on "distribute from this host with nix, to this other host with nix".
Though, here is e.g. https://github.com/matthewbauer/nix-bundle, which is supported as an experimental command in nix 2.4.
- Nix-bundle: package Nix attributes into single-file executables
-
Does Nix or NixOS address the problem raised by Linus Torvalds on package management?
I believe this tool does: https://github.com/matthewbauer/nix-bundle
-
NixOS 21.05 Released
Yes, it's extremely powerful once you truly understand Nix.
There are efforts to improve documentation, but it still is lacking (I think the biggest problem is that Nix is so big, not just the OS but it can be utilized as a build system).
Just with NixOS is not exactly clear how can you for example build your custom image.
I think https://nix.dev/ is approaching the documentation from the right direction.
There are also many pieces that people built that you need to find.
For example some things that I found accidentally:
* https://github.com/matthewbauer/nix-bundle
* https://github.com/cleverca22/not-os
Unfortunately those side projects often have even worse documentation.
What are some alternatives?
napalm - Support for building npm packages in Nix and lightweight npm registry [maintainer @jtojnar]
runix
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
nixGL - A wrapper tool for nix OpenGL application [maintainer=@guibou]
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
nix-gui - Use NixOS Without Coding
nixos-config - My NixOS configuration.
flake-utils-plus - Use Nix flakes without any fluff.
nixos-generators - Collection of image builders [maintainer=@Lassulus]
nixos-shell - Spawns lightweight nixos vms in a shell