ahoviewer: move defaults to package file

This commit is contained in:
Jan Malakhovski 2019-02-03 15:33:33 +00:00
parent 5bcd73c73b
commit 36a0ec673b
2 changed files with 5 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, pkgconfig, libconfig,
gtkmm2, glibmm, libxml2, libsecret, curl, libzip,
librsvg, gst_all_1, autoreconfHook, makeWrapper,
useUnrar ? false, unrar
{ config, stdenv, fetchFromGitHub, pkgconfig, libconfig
, gtkmm2, glibmm, libxml2, libsecret, curl, libzip
, librsvg, gst_all_1, autoreconfHook, makeWrapper
, useUnrar ? config.ahoviewer.useUnrar or false, unrar
}:
assert useUnrar -> unrar != null;

View file

@ -16030,9 +16030,7 @@ in
agedu = callPackage ../tools/misc/agedu { };
ahoviewer = callPackage ../applications/graphics/ahoviewer {
useUnrar = config.ahoviewer.useUnrar or false;
};
ahoviewer = callPackage ../applications/graphics/ahoviewer { };
airwave = callPackage ../applications/audio/airwave { };