File tree 1 file changed +9
-5
lines changed
nixos/modules/services/audio
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,22 @@ with pkgs;
4
4
with lib ;
5
5
6
6
let
7
-
8
7
uid = config . ids . uids . mopidy ;
9
8
gid = config . ids . gids . mopidy ;
10
9
cfg = config . services . mopidy ;
11
10
12
11
mopidyConf = writeText "mopidy.conf" cfg . configuration ;
13
12
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
+ '' ;
16
22
} ;
17
-
18
23
in {
19
24
20
25
options = {
61
66
62
67
} ;
63
68
64
-
65
69
###### implementation
66
70
67
71
config = mkIf cfg . enable {
You can’t perform that action at this time.
0 commit comments