diff options
-rw-r--r-- | pkgs/larbs-music/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/larbs-music/default.nix b/pkgs/larbs-music/default.nix index aec9e5f..de192cb 100644 --- a/pkgs/larbs-music/default.nix +++ b/pkgs/larbs-music/default.nix @@ -1,4 +1,6 @@ -{ stdenv, buildEnv, makeWrapper, makeDesktopItem, callPackage, ncmpcpp, libnotify, musicDir ? "~/Music" }: +{ stdenv, buildEnv, makeWrapper, makeDesktopItem, callPackage, ncmpcpp, libnotify, +musicDir ? "~/Music", +configPath ? "$out/share/ncmpcpp/config" }: with stdenv.lib; let @@ -21,7 +23,7 @@ let mkdir -p $out/share/ncmpcpp sed 's:mpd_music_dir.*:mpd_music_dir = "${musicDir}":' ${config} > $out/share/ncmpcpp/config makeWrapper ${vizNcmpcpp}/bin/ncmpcpp $out/bin/ncmpcpp \ - --add-flags "-c $out/share/ncmpcpp/config" \ + --add-flags "-c ${configPath}" \ --add-flags "-b ${bindings}" ''; |