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

fusiondirectory: Init at 1.2.3 #44629

Closed
wants to merge 1 commit into from
Closed

fusiondirectory: Init at 1.2.3 #44629

wants to merge 1 commit into from

Conversation

dasJ
Copy link
Member

@dasJ dasJ commented Aug 7, 2018

Motivation for this change

I'm using Fusiondirectory to manage my LDAP tree with users, groups and associated permissions.

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.

];

nativeBuildInputs = [ makeWrapper ];
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

It is generally more robust to disable problematic phases rather than explicitly listing phases. Might not matter for this package specifically, but missing important phases is a source of bugs.

sed 's/@@plugins@@/"${lib.concatStringsSep "\", \"" plugins}"/g' '${./setup-plugins.patch}' > setup-plugins.patch
'';

patches = [ "setup-plugins.patch" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be patches = [ ./setup-plugins.patch ];

Copy link
Member Author

@dasJ dasJ Aug 19, 2018

Choose a reason for hiding this comment

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

No, in the patch phase, I patch this patch in prePatch and write it to $PWD (see line 64)

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, but that's quite confusing and not how that attr is usually used ...

Copy link
Contributor

Choose a reason for hiding this comment

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

To elaborate, I'd find it more intuitive if the patch was applied via the standard patch phase and the requisite substitutions performed in postPatch. You could reasonably argue that it works out to the same thing, but there is value in uniformity & sticking to the standard phases as much as possible. I at least am hesitant to merge stuff if I have to spend time trying to figure out how the recipe deviates from the standard boilerplate stuff, absent a clear rationale.

@dasJ dasJ changed the title fusiondirectory: Init at 1.2.1 fusiondirectory: Init at 1.2.3 Dec 6, 2018
@dasJ
Copy link
Member Author

dasJ commented Dec 6, 2018

@joachifm I redid and rebased the PR, hopefully it's ok now ;)

@joachifm
Copy link
Contributor

joachifm commented Dec 7, 2018

It doesn't appear that my comments have been addressed. Or is that merely a github UI issue?

@dasJ
Copy link
Member Author

dasJ commented Dec 9, 2018

Nah, just me being too dumb to use git :/ Pushed now

@dasJ
Copy link
Member Author

dasJ commented Jan 10, 2019

Ping @joachifm before it breaks again :/

@dasJ
Copy link
Member Author

dasJ commented Feb 13, 2019

Ping again @joachifm

@dasJ
Copy link
Member Author

dasJ commented Mar 5, 2019

Are there still reasons to not merge this?

@joachifm
Copy link
Contributor

@GrahamcOfBorg build fusiondirectory

@aanderse
Copy link
Member

@dasJ do you have access to a mac so that you could fix the build error on x86_64-darwin?

@dasJ
Copy link
Member Author

dasJ commented Jul 28, 2019

Stale, it's outdated

@dasJ dasJ closed this Jul 28, 2019
@dasJ dasJ deleted the fusiondirectory branch July 28, 2019 16:48
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

5 participants