Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdenv.mkDerivation: add -static to name if building statically #119317

Merged
merged 3 commits into from
Apr 13, 2021

Commits on Apr 13, 2021

  1. stdenv/make-derivation: unify logic for name modifications

    Unify the logic for constructing the name from pname and version and
    modifying the name in case a host suffix needs to appended. This allows
    us to modify the construction of name from pname and version without
    having to duplicate it in two places.
    sternenseemann committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    fe0524c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    851c0f1 View commit details
    Browse the repository at this point in the history
  3. nix{,Unstable}: pass pname, version to mkDerivation

    This allows stdenv.mkDerivation to append -static to the name for
    pkgsStatic.nix / nixStatic which should make nix-env stop thinking
    that nixStatic is a newer version of nix.
    
    This change replaces NixOS#119310.
    sternenseemann committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    f4e8746 View commit details
    Browse the repository at this point in the history