PHIPS BLOG

  •  Home
  •  Get To Know Me

nixpkgs

Programming & DevOps

Nix: How to Package a Shell Script

Nix with its ecosystem is amazing tooling and the library functions in nixpkgs provide great builders to package certain programs, scripts, and stuff. But in this jungle of options, it’s also sometimes not clear which option is the best or most pragmatic solution. In this blog post, I’m going to Read more…

By Philipp Schuster, 2 months2025-04-01 ago
Screenshot: Nix build: "illegal path referenced in fixed-output derivation". The part on the top shows all Nix store paths that accidentally landed in the derivation (obtained by "grep")
Programming & DevOps

Fixing “Illegal path references in fixed-output derivation” in Nix

The other day I was working with fixed-output derivations. After copying several files to $out, I was facing a “Illegal path references in fixed-output derivation error”. The only helpful reference on the internet I could find was the Nix source code on GitHub. It took me a while to figure Read more…

By Philipp Schuster, 1 year2024-03-19 ago
Programming & DevOps

How to use `gcc_multi` with a specific GCC version in nixpkgs?

I recently came across the problem that pkgs.gcc_multi comes with gcc in version 12 but I needed version 11. While nixpkgs exports gcc in multiple versions (pkgs.gcc, pkgs.gcc11, pkgs.gcc12, pkgs.gcc13), pkgs.gcc_multi is only exported once, backed with the version coming from pkgs.gcc. However, using another, specific gcc version is fairly Read more…

By Philipp Schuster, 1 year2024-03-18 ago

Because this blog is a few years old and used to be a more or less personal german blog, old posts are in german. Newer posts are in english.

  • Impressum
  • Datenschutzerklärung
Hestia | Developed by ThemeIsle