Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 00c6f85d18f1
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: e326c0156d71
Choose a head ref
  • 5 commits
  • 14 files changed
  • 3 contributors

Commits on Sep 7, 2018

  1. weechat: add NixOS module

    lukateras authored and Ma27 committed Sep 7, 2018
    Configuration menu
    Copy the full SHA
    b549877 View commit details
    Browse the repository at this point in the history
  2. weechat: 2.1 -> 2.2; improve package configuration

    This aims to make the `weechat` package even more configurable. It
    allows to specify scripts and commands using the `configure` function
    inside a `weechat.override` expression.
    
    The package can be configured like this:
    
    ```
    with import <nixpkgs> { };
    weechat.override {
      plugins = { availablePlugins, ... }: {
        plugins = builtins.attrValues availablePlugins;
    
        init = ''
          /set foo bar
          /server add freenode chat.freenode.org
        '';
    
        scripts = [ "/path/to/script.py" ];
      };
    }
    ```
    
    All commands are passed to `weechat --run-command "/set foo bar;/server ..."`.
    
    The `plugins' attribute is not necessarily required anymore, if it's
    sufficient to add `init' commands, the `plugins' will be
    `builtins.attrValues availablePlugins' by default.
    
    Additionally the result contains `weechat` and `weechat-headless`
    (introduced in WeeChat 2.1) now.
    Ma27 committed Sep 7, 2018
    Configuration menu
    Copy the full SHA
    a8efe61 View commit details
    Browse the repository at this point in the history
  3. nixos/weechat: cleanup module, add module documentation

    This adds several improvements the previously introduced
    `services.weechat` module:
    
    * Dropped `services.weechat.init` as the initialization script can now
      be done on package-level since 2af41719bc using the `configure`
      function.
    
    * Added `sessionName` option to explicitly configure a name for the
      `screen` session (by default: weechat-screen).
    
    * Added `binary` option to configure the binary name (e.g.
      `weechat-headless`).
    
    * Added docs regarding `screen` session and `weechat.service`.
    Ma27 committed Sep 7, 2018
    Configuration menu
    Copy the full SHA
    18d4191 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f5becfb View commit details
    Browse the repository at this point in the history
  5. Merge pull request #45728 from Ma27/nixos/weechat-module

    nixos/weechat: add module
    timokau committed Sep 7, 2018
    Configuration menu
    Copy the full SHA
    e326c01 View commit details
    Browse the repository at this point in the history