From 1865d211dd8b1ce8a5e328237123aae5201bef7e Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 10 Nov 2020 13:37:20 +0100 Subject: Add custom config to ncmpcpp --- pkgs/larbs-music/default.nix | 6 ++++-- 1 file 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}" ''; -- cgit 1.4.1