in nixos how can I provide my own unpackPhase to the tar file downloaded by…
Private research annotation
Sign in to add a private research label or note.
- User
in nixos how can I provide my own unpackPhase to the tar file downloaded by fetchFromGitHub
- Assistant
In NixOS, when you are working with Nix expressions and want to override the
unpackPhasefor a source fetched usingfetchFromGitHub, you can do so by customizing the standard derivation's (stdenv's) phases.Here's an example Nix expression that demonstrates how you can override the
unpackPhasefor a tar file downloaded usingfetchFromGitHub:nix