-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
tilix: init at 1.5.8 #26349
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
Conversation
''; | ||
|
||
|
||
ldLibraryPath = stdenv.lib.makeLibraryPath (gtkd.ldLibraries ++ [ libsecret ]); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's now fixed :-)
Motivation for this change
Tilix is a tiling terminal emulator following the Gnome human interface guidelines.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)