nixpkgs VS spack

Compare nixpkgs vs spack and see what are their differences.

spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers. (by spack)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
nixpkgs spack
1,031 55
20,307 4,656
2.4% 0.9%
10.0 10.0
5 days ago about 17 hours ago
Nix Python
MIT License Apache-2.0 or MIT
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

nixpkgs

Posts with mentions or reviews of nixpkgs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-18.
  • Free high-performance cross-platform game engine
    6 projects | news.ycombinator.com | 18 Apr 2025
    Noticed it wasn't on Nixpkgs, so... https://github.com/NixOS/nixpkgs/pull/399843
  • Amazon Q CLI: now available in Nix unstable
    1 project | news.ycombinator.com | 7 Apr 2025
  • InitWare, a portable systemd fork running on BSDs and Linux
    5 projects | news.ycombinator.com | 3 Apr 2025
    https://github.com/nixos-bsd/nixbsd This is a very cool project that I hope will get upstreamed into NixOS proper, eventually.

    I always thought InitWare would be good for that. See https://github.com/NixOS/nixpkgs/issues/26850 --- we've been discussing this before NixBSD existed, even!

  • The essential guide to installing Amazon Q Developer CLI on Linux (headless and desktop)
    2 projects | dev.to | 23 Mar 2025
    If you are currently involved in managing packages for a Linux distribution, then you might want to use the instructions outlined in the GitHub repo to help you build packages for your distributions. My colleague James Ward has recently done this for NixOS (you can see his PR here)
  • A Look at Firefox Forks
    7 projects | news.ycombinator.com | 14 Mar 2025
    You can do this with vanilla Firefox using policies.json[1]. Check out `DisableAppUpdate` attribute.

    If you're using Firefox from nixpkgs this is already disabled by default[2].

    [1]: https://support.mozilla.org/en-US/kb/customizing-firefox-usi...

    [2]: https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/appli...

  • Nvidia GPU on bare metal NixOS Kubernetes cluster explained
    3 projects | news.ycombinator.com | 2 Mar 2025
    Ah, this is awesome! I currently run k3s on a decently spec-ed NixOS rig. I tried getting k3s to recognize my Nvidia GPU but was unsuccessful. I even used the small guide for getting GPU in k3s to work in nixpkgs[0], but without success.

    For now I’m just using Docker’s Nvidia container runtime for containers that need GPU acceleration.

    Will likely spend more time digging into your findings — hoping it results in me finding a solution to my setup!

    [0] https://github.com/NixOS/nixpkgs/blob/master/pkgs/applicatio...

  • Nix and Containers: Why Not Both?
    1 project | news.ycombinator.com | 27 Feb 2025
    - Method 1: doesn't really improve layer caching, but it provides a familiar way (via Dockerfile) to use Nix packages. As with any Dockerfile, the creator is in charge of creating layers and making sure those layers are as small (cleaning cache, ...).

    - Method 2: Nix language is used to describe (in a declarative way) what the end image should look like. Layers are then calculated based on the dependency tree (or as Nix calls it, dependency closure). The algorithm that creates layers[1] makes sure that there is higher likelihood of cache hits without the user needing to worry about layers, but you can even roll-up your own algorithm that fits your project better.

    - Method 3: Using Flox you would get sort of both. An easy way to configure the final docker image via toml configuration and using Method 2 under the hood.

    There are other ways how to improve caching efficiency, but those are very use case specific (eg. big "builder" images) and would probably require a completely separate blog post.

    [1] https://github.com/NixOS/nixpkgs/blob/63f0da03a3b2c323ea924b...

  • A peek into a possible future of Python in the browser
    4 projects | news.ycombinator.com | 25 Feb 2025
    I spent a while messing around with https://github.com/ansiwave/nimwave, which I enjoyed but I haven't gotten very far. Though I've been avoiding the front end for so long, I don't know what reasonable feels like in that space anyway.

    My Nim journey was stalled by this bug in its nix toolchain: https://github.com/NixOS/nixpkgs/issues/308593. I guess that's the price we pay for straying from the beaten path.

  • Gixy: Nginx Configuration Static Analyzer
    6 projects | news.ycombinator.com | 15 Feb 2025
    The build will actually fail if Gixy finds any issues.

    [1]: https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modu...

  • Nixpkgs: Reverting commit that disables telemetry of a package
    1 project | news.ycombinator.com | 14 Feb 2025

spack

Posts with mentions or reviews of spack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-17.
  • Uv overtakes Poetry (for Wagtail users)
    8 projects | news.ycombinator.com | 17 Mar 2025
    You could use a package manager that packages C, C++, Fortran and Python packages such as Spack: here's the py-shapely recipe [1] and here is geos [2]. Probably nix does similar.

    [1]: https://github.com/spack/spack/blob/develop/var/spack/repos/...

  • Persistent packages on Steam Deck using Nix
    4 projects | news.ycombinator.com | 9 Feb 2025
    Just out of curiosity, have you checked out Spack, https://github.com/spack/spack, which has a lot of HPC users. Support for mixing and matching both system and from source dependencies has been extremely useful in my work.
  • Spack – a multi-platform, multi-version package manager for OS X, Windows, Linux
    1 project | news.ycombinator.com | 5 Aug 2024
  • Autodafe: "freeing your freeing your project from the clammy grip of autotools."
    4 projects | news.ycombinator.com | 6 Apr 2024
    > Are we talking about the same autotools?

    Yes. Instead of figuring out how to do something particular with every single software package, I can do a --with-foo or --without-bar or --prefix=/opt/baz-1.2.3, and be fairly confident that it will work the way I want.

    Certainly with package managers or (FreeBSD) Ports a lot is taken care of behind the scenes, but the above would also help the package/port maintainers as well. Lately I've been using Spack for special-needs compiles, but maintainer ease also helps there, but there are still cases one a 'fully manual' compile is still done.

    > Suffice it to say, I prefer to work with handwritten makefiles.

    Having everyone 'roll their own' system would probably be worse, because any "mysteriously failure" then has to be debugged specially for each project.

    Have you tried Spack?

    * https://spack.io

    * https://spack.readthedocs.io/en/latest/

  • FreeBSD has a(nother) new C compiler: Intel oneAPI DPC++/C++
    2 projects | news.ycombinator.com | 7 Mar 2024
    Well, good luck with that, cause it's broken.

    Previous release miscompiled Python [1]

    Current release miscompiles bison [2]

    [1] https://github.com/spack/spack/issues/38724

    [2] https://github.com/spack/spack/issues/37172#issuecomment-181...

  • Essential Command Line Tools for Developers
    29 projects | dev.to | 15 Jan 2024
    gh is available via Homebrew, MacPorts, Conda, Spack, Webi, and as a…
  • The Curious Case of MD5
    4 projects | news.ycombinator.com | 3 Jan 2024
    > I can't count the number of times I've seen people say "md5 is fine for use case xyz" where in some counterintuitive way it wasn't fine.

    I can count many more times that people told me that md5 was "broken" for file verification when, in fact, it never has been.

    My main gripe with the article is that it portrays the entire legal profession as "backwards" and "deeply negligent" when they're not actually doing anything unsafe -- or even likely to be unsafe. And "tech" knows better. Much of tech, it would seem, has no idea about the use cases and why one might be safe or not. They just know something's "broken" -- so, clearly, we should update.

    > Just use a safe one, even if you think you "don't need it".

    Here's me switching 5,700 or so hashes from md5 to sha256 in 2019: https://github.com/spack/spack/pull/13185

    Did I need it? No. Am I "compliant"? Yes.

    Really, though, the main tangible benefit was that it saved me having to respond to questions and uninformed criticism from people unnecessarily worried about md5 checksums.

  • Spack Package Manager v0.21.0
    1 project | news.ycombinator.com | 12 Nov 2023
  • Show HN: FlakeHub – Discover and publish Nix flakes
    2 projects | news.ycombinator.com | 22 Aug 2023
  • Nixhub: Search Historical Versions of Nix Packages
    3 projects | news.ycombinator.com | 20 Jul 2023
    [1] https://github.com/spack/spack/blob/develop/var/spack/repos/...

What are some alternatives?

When comparing nixpkgs and spack you can also consider the following projects:

zen-kernel - Zen Patched Kernel Sources

HomeBrew - 🍺 The missing package manager for macOS (or Linux)

Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]

EasyBuild - EasyBuild - building software with ease

waydroid - Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.

poetry2nix - Convert poetry projects to nix automagically [maintainer=]

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Nix is
the 30th most popular programming language
based on number of references?