{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/15126","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/15126/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/15126/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/15126/events","html_url":"https://github.com/NixOS/nixpkgs/issues/15126","id":152060156,"number":15126,"title":"libpulseaudio-8.0-dev is added to LD_LIBRARY_PATH of Firefox","user":{"login":"michalrus","id":4366292,"avatar_url":"https://avatars.githubusercontent.com/u/4366292?v=3","gravatar_id":"","url":"https://api.github.com/users/michalrus","html_url":"https://github.com/michalrus","followers_url":"https://api.github.com/users/michalrus/followers","following_url":"https://api.github.com/users/michalrus/following{/other_user}","gists_url":"https://api.github.com/users/michalrus/gists{/gist_id}","starred_url":"https://api.github.com/users/michalrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalrus/subscriptions","organizations_url":"https://api.github.com/users/michalrus/orgs","repos_url":"https://api.github.com/users/michalrus/repos","events_url":"https://api.github.com/users/michalrus/events{/privacy}","received_events_url":"https://api.github.com/users/michalrus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20closure-size","name":"6.topic: closure-size","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-01T00:07:11Z","updated_at":"2016-05-01T09:27:19Z","closed_at":"2016-05-01T09:27:19Z","body":"## Issue description\r\n\r\nAfter setting `nixpkgs.config.pulseaudio = true`, Firefox should pick it up, as can be seen in https://github.com/NixOS/nixpkgs/blob/f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b/pkgs/applications/networking/browsers/firefox/wrapper.nix#L52.\r\n\r\nHowever, `/nix/store/*-libpulseaudio-8.0-dev/lib` is added to the `LD_LIBRARY_PATH` in the wrapper script, instead of the compiled `/nix/store/*-libpulseaudio-8.0/lib`. Because of that, Firefox can’t see `libpulse*.so`’s and falls back to the ALSA sink.\r\n\r\nRelevant change in my nixos-config is in https://github.com/michalrus/dotfiles/commit/875cbbe13d59bf2f82f3755967e40712dcdf7f83.\r\n\r\n### Steps to reproduce\r\n\r\n```\r\n% cat $(which firefox) | grep pulse\r\n\r\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}/nix/store/dmbwn5933n5q4pk3i4y9zb4vbxynf9aj-libpulseaudio-8.0-dev/lib\r\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}/nix/store/dmbwn5933n5q4pk3i4y9zb4vbxynf9aj-libpulseaudio-8.0-dev/lib64\r\n```\r\n\r\n## Technical details\r\n\r\n* System: 16.09pre82105.7465bcd (Flounder)\r\n* Nix version: nix-env (Nix) 1.11.2\r\n* Nixpkgs version: \"16.09pre82105.7465bcd\"\r\n"}}