Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Created May 21, 2019 05:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/7ab4951213346d1cbbb06bb362577a10 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/7ab4951213346d1cbbb06bb362577a10 to your computer and use it in GitHub Desktop.
Nix Overrides #nix

Nix Overrides

  • overrideDerivation is used to override the call to derivation
  • overrideAttrs is used to override the call to stdenv.mkDerivation
  • override is used to override the last function call. Often this will be the callPackage call.
  • overridePythonAttrs is used to override the call to buildPython*.

This PR NixOS/nixpkgs#46842 discusses the idea to have a generic overrideArgs that works like overridePythonAttrs for all language infrastructures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment