Skip to content

Add preFixupPhases and a glib setup-hook for gsettings schemas - #1901

Closed
lucabrunox wants to merge 3 commits into
NixOS:masterfrom
lucabrunox:gschemas
Closed

lucabrunox wants to merge 3 commits into
NixOS:masterfrom
lucabrunox:gschemas

Conversation

@lucabrunox

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fixupPhase already executespreFixup phase

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

How would you override the preFixup hook to run your code if preFixup is a function? Some ugly trick like this would be needed: http://mivok.net/2009/09/20/bashfunctionoverrist.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's exactly the reason why there are those indirect *Phases variables. Overriding them by hooks is easy.

I think we should have the stdenv change. It may come handy even in other cases.

@vcunat

vcunat commented Mar 9, 2014

Copy link
Copy Markdown
Member

It's inconvenient having to change stdenv, but currently I see no other good way of achieving the same thing. (Lately I've been unsure what to do with stdenv changes, rarely getting any reply about them.)

vcunat added a commit to vcunat/nixpkgs that referenced this pull request Mar 10, 2014
Without this stdenv change it seems difficult to fix some glib's gsettings issues,
as the folders in question may (not) be created in installPhase.
@vcunat vcunat mentioned this pull request Apr 2, 2014
vcunat added a commit to vcunat/nixpkgs that referenced this pull request Apr 2, 2014
Without this stdenv change it seems difficult to fix some glib's gsettings issues,
as the folders in question may (not) be created in installPhase.
@lucabrunox

Copy link
Copy Markdown
Contributor Author

Closed via 10147be.

@lucabrunox lucabrunox closed this Apr 4, 2014
vcunat added a commit to vcunat/nixpkgs that referenced this pull request Apr 5, 2014
- move frome $out to $out/share
- fix quoting that prevented globbing
- indent by spaces (as it is more common in nixpkgs; 4 spaces for shell)
vcunat added a commit that referenced this pull request Apr 5, 2014
- move frome $out to $out/share
- fix quoting that prevented globbing
- indent by spaces (as it is more common in nixpkgs; 4 spaces for shell)

More work is still needed for some individual packages.
lucabrunox pushed a commit to lucabrunox/nixpkgs that referenced this pull request Apr 6, 2014
domenkozar added a commit that referenced this pull request Apr 6, 2014
Fix gsettings schemas usage for several packages due to #1901
lucabrunox pushed a commit to lucabrunox/nixpkgs that referenced this pull request Apr 6, 2014
Without this stdenv change it seems difficult to fix some glib's gsettings issues,
as the folders in question may (not) be created in installPhase.
lucabrunox pushed a commit to lucabrunox/nixpkgs that referenced this pull request Apr 6, 2014
- move frome $out to $out/share
- fix quoting that prevented globbing
- indent by spaces (as it is more common in nixpkgs; 4 spaces for shell)

More work is still needed for some individual packages.
lucabrunox pushed a commit to lucabrunox/nixpkgs that referenced this pull request Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants