nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

goldendict.nix (522B)


      1 {
      2   config,
      3   lib,
      4   pkgs,
      5   ...
      6 }:
      7 
      8 with lib;
      9 let
     10   cfg = config.programs.goldendict;
     11 in
     12 {
     13   meta.maintainers = [ maintainers.sikmir ];
     14 
     15   options.programs.goldendict = {
     16     enable = mkEnableOption "A feature-rich dictionary lookup program";
     17 
     18     package = mkOption {
     19       default = pkgs.goldendict;
     20       defaultText = literalExpression "pkgs.goldendict";
     21       description = "GoldenDict package to install.";
     22       type = types.package;
     23     };
     24   };
     25 
     26   config = mkIf cfg.enable { home.packages = [ cfg.package ]; };
     27 }