{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/683","labels_url":"https://api.github.com/repos/NixOS/nix/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/683/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/683/events","html_url":"https://github.com/NixOS/nix/issues/683","id":115466149,"number":683,"title":"Use nix-installed libsodium?","user":{"login":"lukasepple","id":3154475,"avatar_url":"https://avatars.githubusercontent.com/u/3154475?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasepple","html_url":"https://github.com/lukasepple","followers_url":"https://api.github.com/users/lukasepple/followers","following_url":"https://api.github.com/users/lukasepple/following{/other_user}","gists_url":"https://api.github.com/users/lukasepple/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasepple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasepple/subscriptions","organizations_url":"https://api.github.com/users/lukasepple/orgs","repos_url":"https://api.github.com/users/lukasepple/repos","events_url":"https://api.github.com/users/lukasepple/events{/privacy}","received_events_url":"https://api.github.com/users/lukasepple/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-06T09:22:14Z","updated_at":"2015-11-06T10:08:00Z","closed_at":null,"body":"On ArchLinux libsodium seems to have gone too far ahead leaving me with:\r\n\r\n```\r\nCan't load '/usr/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi/auto/Nix/Store/Store.so' for module Nix::Store: libsodium.so.13: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden at /usr/share/perl5/core_perl/XSLoader.pm line 70.\r\n at /usr/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi/Nix/Store.pm line 38.\r\nCompilation failed in require at /usr/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi/Nix/Manifest.pm line 13.\r\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi/Nix/Manifest.pm line 13.\r\nCompilation failed in require at /usr/bin/nix-channel line 8.\r\nBEGIN failed--compilation aborted at /usr/bin/nix-channel line 8.\r\n```\r\n\r\n```\r\n$ locate libsodium.so\r\n/nix/store/xdvadkvgmkrv8dnjcqv6rlxapzgra3bd-libsodium-1.0.3/lib/libsodium.so\r\n/nix/store/xdvadkvgmkrv8dnjcqv6rlxapzgra3bd-libsodium-1.0.3/lib/libsodium.so.13\r\n/nix/store/xdvadkvgmkrv8dnjcqv6rlxapzgra3bd-libsodium-1.0.3/lib/libsodium.so.13.2.0\r\n/usr/lib/libsodium.so\r\n/usr/lib/libsodium.so.17\r\n/usr/lib/libsodium.so.17.0.0\r\n```\r\n\r\nFix for me is to call every nix command like this:\r\n\r\n```\r\nLD_PRELOAD=\"/nix/store/xdvadkvgmkrv8dnjcqv6rlxapzgra3bd-libsodium-1.0.3/lib/libsodium.so.13\" nix-channel --update\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nix/issues/comments/154369634","html_url":"https://github.com/NixOS/nix/issues/683#issuecomment-154369634","issue_url":"https://api.github.com/repos/NixOS/nix/issues/683","id":154369634,"user":{"login":"lukasepple","id":3154475,"avatar_url":"https://avatars.githubusercontent.com/u/3154475?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasepple","html_url":"https://github.com/lukasepple","followers_url":"https://api.github.com/users/lukasepple/followers","following_url":"https://api.github.com/users/lukasepple/following{/other_user}","gists_url":"https://api.github.com/users/lukasepple/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasepple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasepple/subscriptions","organizations_url":"https://api.github.com/users/lukasepple/orgs","repos_url":"https://api.github.com/users/lukasepple/repos","events_url":"https://api.github.com/users/lukasepple/events{/privacy}","received_events_url":"https://api.github.com/users/lukasepple/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T10:08:00Z","updated_at":"2015-11-06T10:08:00Z","body":"mh, `/usr/lib` is in there, should work actually. The problem seems to be that nix just does not like `libsodium.so.17`."}}