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

NixOS #478

Open
shot-codes opened this issue Sep 26, 2024 · 1 comment
Open

NixOS #478

shot-codes opened this issue Sep 26, 2024 · 1 comment

Comments

@shot-codes
Copy link

I'm leaving this here for anyone who is attempting to run cfclient on NixOS. The following shell.nix allows for successful launch of the application. I haven't done extensive testing but will try to come back here with any relevant updates if I come across something.

The shell assumes nix-ld is installed ( programs.nix-ld.enable = true;)

with import <nixpkgs> {};
mkShell {
  NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
    stdenv.cc.cc
    zlib
    libGL
    libxkbcommon
    kdePackages.full
    kdePackages.wayland
    fontconfig
    libusb1
  ];
  NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
  buildInputs = [ python312 ];
  shellHook = ''
    export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
    source .venv/bin/activate
  '';
}
@gemenerik
Copy link
Member

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants