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

tilix: init at 1.5.8 #26349

Merged
merged 2 commits into from Jun 10, 2017
Merged

tilix: init at 1.5.8 #26349

merged 2 commits into from Jun 10, 2017

Conversation

midchildan
Copy link
Member

Motivation for this change

Tilix is a tiling terminal emulator following the Gnome human interface guidelines.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

'';


ldLibraryPath = stdenv.lib.makeLibraryPath (gtkd.ldLibraries ++ [ libsecret ]);
Copy link
Member

Choose a reason for hiding this comment

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

if you need this temporarily, use a let ... in expression instead

installFlags = "prefix=$(out)";

passthru = {
ldLibraries = propagatedBuildInputs;
Copy link
Member

Choose a reason for hiding this comment

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

why add these to passthru? First of all, propagatedBuildInputs is an attribute that you could use, second of all, why do you even need it? These inputs are propagated, so a derivation depending on this expression will all those to its inputs.

Copy link
Member Author

@midchildan midchildan Jun 6, 2017

Choose a reason for hiding this comment

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

I initially passed gtkd.propagatedBuildInputs to makeLibraryPath in the tilix package, but it couldn't generate paths from the out output of the dependent packages.

name = "tilix-${version}";
version = "1.5.8";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

fetchFromGitHub

substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
--replace "Exec=tilix" "Exec=$out/bin/tilix"

gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${ldLibraryPath}")
Copy link
Member

Choose a reason for hiding this comment

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

Why set LD_LIBRARY_PATH? What is it that cannot find the libraries?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's set because gtkd uses dlopen to load the dependent libraries.

Copy link
Member

Choose a reason for hiding this comment

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

in such cases we patch the code using absolute paths to the libraries

Copy link
Member Author

Choose a reason for hiding this comment

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

It's now fixed :-)

@Mic92 Mic92 merged commit 800d525 into NixOS:master Jun 10, 2017
@midchildan midchildan deleted the tilix branch June 10, 2017 09:34
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

4 participants