about summary refs log tree commit diff
path: root/pkgs/larbs-music/default.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-10 13:37:20 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-10 13:37:20 +0100
commit1865d211dd8b1ce8a5e328237123aae5201bef7e (patch)
treef5439b7a63ecb8ecec7c9248a7388bd1a3c0e14d /pkgs/larbs-music/default.nix
parent2ac213c65cf4a06cfcfb6fc7c6e56da2ca098a6c (diff)
downloadpnpkgs-1865d211dd8b1ce8a5e328237123aae5201bef7e.tar.gz
pnpkgs-1865d211dd8b1ce8a5e328237123aae5201bef7e.zip
Add custom config to ncmpcpp
Diffstat (limited to 'pkgs/larbs-music/default.nix')
-rw-r--r--pkgs/larbs-music/default.nix6
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}"
     '';