commit 7773c12cc59aba7153748b4e3ee7912279a10959 parent 57ca9bd15bbb14a045185b45822aacbe83e10c55 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Tue, 24 Dec 2019 02:16:00 +0300 Fix evaluation on nixos-19.09 Diffstat:
M | default.nix | | | 13 | ++++++++++--- |
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/default.nix b/default.nix @@ -56,7 +56,14 @@ in { redict = libsForQt5.callPackage ./pkgs/redict { inherit (sources) redict; }; - stardict-tools = callPackage ./pkgs/stardict-tools { - inherit (sources) stardict-3; - }; + stardict-tools = + # Needed for nixos-19.09 + if pkgs ? libmysql + then callPackage ./pkgs/stardict-tools { + inherit (sources) stardict-3; + libmysqlclient = libmysql; + } + else callPackage ./pkgs/stardict-tools { + inherit (sources) stardict-3; + }; }