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

Remove composableDerivation, closes #18763 #44116

Merged
merged 1 commit into from Dec 30, 2018
Merged

Conversation

FRidh
Copy link
Member

@FRidh FRidh commented Jul 26, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@domenkozar
Copy link
Member

Should we provide an explanation (with assert) if someone references it?

@xeji
Copy link
Contributor

xeji commented Jul 31, 2018

The helper functions defaultOverridableDelayableArgs and overridableDelayableArgs are still referenced in lib/tests/misc.nix and lib/default.nix.

@FRidh
Copy link
Member Author

FRidh commented Aug 4, 2018

The helper functions defaultOverridableDelayableArgs and overridableDelayableArgs are still referenced in lib/tests/misc.nix and lib/default.nix.

Thanks for checking. Fixed.

lib/default.nix Outdated
@@ -123,14 +123,14 @@ let
traceShowValMarked showVal traceCall traceCall2 traceCall3
traceValIfNot runTests testAllTrue traceCallXml attrNamesToStr;
inherit (misc) maybeEnv defaultMergeArg defaultMerge foldArgs
defaultOverridableDelayableArgs composedArgsAndFun
composedArgsAndFun
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

composedArgsAndFun is removed from lib/deprecated.nix below.

@@ -285,7 +217,7 @@ rec {
# };
# will result in
# { mergeAttrsBy = [...]; buildInputs = [ a b c d ]; }
# is used by prepareDerivationArgs, defaultOverridableDelayableArgs and can be used when composing using
# is used by prepareDerivationArgs and can be used when composing using
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepareDerivationArgs is removed as well

maybeAttrNullable maybeAttr ifEnable checkFlag getValue
checkReqs uniqList uniqListExt condConcat lazyGenericClosure
innerModifySumArgs modifySumArgs innerClosePropagation
closePropagation mapAttrsFlatten nvs setAttr setAttrMerge
mergeAttrsWithFunc mergeAttrsConcatenateValues
mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults
mergeAttrsByFuncDefaultsClean mergeAttrBy prepareDerivationArgs
nixType imap overridableDelayableArgs;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepareDerivationArgs (L133) is removed

@samueldr samueldr modified the milestones: 18.09, 19.03 Oct 6, 2018
@FRidh FRidh force-pushed the composable branch 2 times, most recently from 4ff449c to 11e91d2 Compare November 21, 2018 12:01
@FRidh
Copy link
Member Author

FRidh commented Dec 30, 2018

Pushed an update. lib and its tests now evaluate.

@domenkozar domenkozar merged commit c6e043d into NixOS:master Dec 30, 2018
@FRidh FRidh deleted the composable branch December 30, 2018 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants