Skip to content

Commit 2070830

Browse files
lukaterasMic92
authored andcommittedMar 5, 2018
mopidy: fix, resolves #32234
fixes #36332 (cherry picked from commit 85b8452)
1 parent 848a465 commit 2070830

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed
 

Diff for: ‎nixos/modules/services/audio/mopidy.nix

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ with pkgs;
44
with lib;
55

66
let
7-
87
uid = config.ids.uids.mopidy;
98
gid = config.ids.gids.mopidy;
109
cfg = config.services.mopidy;
1110

1211
mopidyConf = writeText "mopidy.conf" cfg.configuration;
1312

14-
mopidyEnv = python.buildEnv.override {
15-
extraLibs = [ mopidy ] ++ cfg.extensionPackages;
13+
mopidyEnv = buildEnv {
14+
name = "mopidy-with-extensions-${mopidy.version}";
15+
paths = closePropagation cfg.extensionPackages;
16+
pathsToLink = [ "/${python.sitePackages}" ];
17+
buildInputs = [ makeWrapper ];
18+
postBuild = ''
19+
makeWrapper ${mopidy}/bin/mopidy $out/bin/mopidy \
20+
--prefix PYTHONPATH : $out/${python.sitePackages}
21+
'';
1622
};
17-
1823
in {
1924

2025
options = {
@@ -61,7 +66,6 @@ in {
6166

6267
};
6368

64-
6569
###### implementation
6670

6771
config = mkIf cfg.enable {

0 commit comments

Comments
 (0)