Skip to content

Conversation

@jhakonen
Copy link

@jhakonen jhakonen commented May 4, 2025

This PR makes it possible to change where make install installs files.

This is useful in NixOS where the correct installation path is for example /nix/store/y0r97v3g7amkaw0rcvkmxnj6al02q064-qjournalctl-0.6.4 instead of /usr.

Qjournalctl's package definition in nixpkgs modifies qjournalctl.pro, replacing /usr with correct path here:
https://github.com/NixOS/nixpkgs/blob/bf3287dac860542719fe7554e21e686108716879/pkgs/applications/system/qjournalctl/default.nix#L24

However, with this change that patching phase is not needed. Package's configure phase is already calling qmake with PREFIX provided as argument. It is just matter of using the variable in the project file. This makes it easier to hack qjournalctl's code in NixOS as the project file does not need to be changed.

Modified also autogen.sh and added readme instructions in case defining PREFIX is useful outside of NixOS usage.

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.

1 participant