Skip to content

Not able to run the portable version on NixOS #4838

Closed Answered by felipelalli
felipelalli asked this question in Q&A
Discussion options

You must be logged in to vote

If the version is "portable", I would expect these dependencies to be included in the final package. However, if that's not feasible, please follow the shell.nix that I've constructed after much trial and error, along with an extended conversation with ChatGPT (however I'm not sure if this is the best optimized option):

{ pkgs ? import <nixpkgs> { } }:

let
  qt = pkgs.qt515;
  sqliteStudioPath = ".";  
in
pkgs.mkShell {
  # Just for some extra debug-useful visibility
  QT_DEBUG_PLUGINS = 1;

  LD_LIBRARY_PATH = with pkgs; pkgs.lib.makeLibraryPath [
    qt5.full
    zlib
    krb5
    glib
    patchelf
    readline
    stdenv.cc.cc
    libGL
    zlib
    glib # libgthread-2.0.so
    xorg.l…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by felipelalli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4837 on July 28, 2023 22:33.