gcc-toolchain VS nixpkgs

Compare gcc-toolchain vs nixpkgs and see what are their differences.

gcc-toolchain

A fully-hermetic Bazel GCC toolchain for Linux. (by aspect-build)

nixpkgs

Nix Packages collection (by NixOS)
Our great sponsors
  • Scout APM - Truly a developer’s best friend
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Zigi - Close all those tabs. Zigi will handle your updates.
  • InfluxDB - Build time-series-based applications quickly and at scale.
gcc-toolchain nixpkgs
1 712
36 10,848
- 2.2%
8.7 10.0
12 days ago 5 days ago
Starlark Nix
Apache License 2.0 MIT License
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.

gcc-toolchain

Posts with mentions or reviews of gcc-toolchain. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-23.

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 2022-12-02.
  • My entire workflow depends on old programs
    3 projects | reddit.com/r/linuxmasterrace | 2 Dec 2022
    And for older commits that still didn't had a flake: nix shell -f https://github.com/nixos/nixpkgs/archive/nixos-18.09.tar.gz neovim
  • NixOS 22.11 “Raccoon” Released
    16 projects | news.ycombinator.com | 1 Dec 2022
    If it's an Intel iGPU + an Nvidia dGPU beware there's a bug with the implementation of the Nvidia driver currently which breaks connecting external displays on X11 depending on your hardware. See <https://github.com/NixOS/nixpkgs/issues/199024> and the comments of <https://github.com/NixOS/nixpkgs/pull/165188>.

    Also setting Coolbits doesn't seem to work either on my end, which means no overclocking support for the Nvidia GPU (if that's something you care about).

    16 projects | news.ycombinator.com | 1 Dec 2022
    No.

    A main reason people use containerisation is to work around the problem that different versions of libraries and binaries cannot coexist in classical Linux distributions. This problem does not exist in NixOS.

    The services are declared as NixOS modules, which manifest as plain systemd services on the server.

    Systemd has its own set of options for resource/security isolation, and some NixOS modules use them where possible, for example: https://github.com/NixOS/nixpkgs/blob/8d559672bedd54034b711d...

    16 projects | news.ycombinator.com | 1 Dec 2022
    Plugging my own thing here, but I have been experimenting with a Nix configuration for gaming only. My configuration is here (for Nvidia, which does not work without tinkering as AMD does) : https://github.com/jhvst/nix-config/blob/main/nvidia.nix

    First, this is a whole system specification. This means that executing this on Nix will build you a whole OS image. You can build the image if you have Nix by running the first line on file. You can also use Docker with the instruction on my README: https://github.com/jhvst/nix-config

    Back to elaborating on the Nix file from the gaming perspective. First, we have the overlays. These are like patches to the packages, and really useful for gaming because it allows building important packages like mesa from the source tip. This is particularly useful when new games or GPUs are released. Same thing for wayland: Nvidia and its proprietary drivers need some patching, but it's possible to get wayland (and sway) to work this way.

    Then, I have taken the reproducibility of Nix to a next step in my opinion, and made the system stateless. This means that it runs from the RAM. It is easy to create installation media like kernel, initrd, and rootfs because you have all the steps to create the distribution. This means that here, Nix works as a meta-distro like Gentoo, on top of which you develop your own. Running from the RAM means that theoretically, if you have a working config, and two people with different hardware runs it, then they should have the same experience. If you look at ProtonDB, you often find that some people claim that game X works on their machine with drivers and mesa of Y and Z, but there is no way to copy their configurations because it's certain that the user has made some stateful changes which they have forgotten hence left undocumented, which is the reason it works for them. If everyone would be using Nix, you could reproduce their system and possibly fix your own, but this is not tractable with most OSs.

    If you like to test my changes, you can read more about my approach here: https://github.com/NixOS/nixpkgs/pull/203750

    For testing I distribute Nvidia as documented here: https://github.com/jhvst/jhvst.github.io/blob/main/ramdisk.m...

    However, I have developed it bit further: if you manage to get into an iPXE shell, you can write `boot -a http://boot.ponkila.com/menu.ipxe`, then select the second option which is Nvidia (proprietary drivers), and with some waiting you will get into a shell prompt to which you can write `sway --unsupported-gpu`, which will launch sway. Cmd+Enter opens a prompt to which you can write `steam`, which will open Steam. Then, you have to mount some drive on another shell with `mount`, and add this as a Steam library via Steam's UI. Then you can play games. I use this on AMD and I have been very happy.

  • NVIM v0.9.0-dev + Telescope extremely slow on large codebase - was forced to open VSCode
    4 projects | reddit.com/r/neovim | 30 Nov 2022
    I am working on a module in https://github.com/NixOS/nixpkgs codebase and the experience is just extremely unpleasant in Neovim.
  • introducing lispPackagesLite: Common Lisp in pure Nix, no Quicklisp. I need help with makeScope.
    4 projects | reddit.com/r/NixOS | 25 Nov 2022
    Like this: https://github.com/NixOS/nixpkgs/commit/632c4f2c9ba1f88cd5662da7bedf2ca5f0cda4a9
    4 projects | reddit.com/r/NixOS | 25 Nov 2022
  • Installing latest stable Neovim with Nix
    4 projects | reddit.com/r/neovim | 17 Nov 2022
    Does anyone have a ready-to-use nix file to install Neovim 0.8.1? For the last year I've been using neovim overlay as nightly always had something to offer. But these days 0.8.x has everything I ever wanted and probably it's time to stick to something more stable. However, I'm struggling to setup the derivation for 0.8.1. I tried to copy over neovim/default.nix from master (I'm on darwin-22.05), but it fails because of something with Lua env.
    4 projects | reddit.com/r/neovim | 17 Nov 2022
    Nixpkgs Unstable has neovim 0.8.0 currently (https://search.nixos.org/packages?channel=unstable&show=neovim&from=0&size=50&sort=relevance&type=packages&query=neovim), and neovim 0.8.1 is in a pr that will be merged shortly (https://github.com/NixOS/nixpkgs/pull/201351).
  • LTO and PGO in NixOS?
    2 projects | reddit.com/r/NixOS | 16 Nov 2022

What are some alternatives?

When comparing gcc-toolchain and nixpkgs you can also consider the following projects:

asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

Home Manager using Nix - Manage a user environment using Nix [[email protected]]

git-lfs - Git extension for versioning large files

easyeffects - Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications

youtube-dl-gui - A cross-platform GUI for youtube-dl made in Electron and node.js

daedalus - The open source cryptocurrency wallet for ada, built to grow with the community

devshell - Per project developer environments

nonguix

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

nixos - My NixOS Configurations

tailscale - The easiest, most secure way to use WireGuard and 2FA.

spack - A flexible package manager that supports multiple versions, configurations, platforms, and compilers.