Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb3f7d14a17e
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 996c0d6e003e
Choose a head ref

Commits on Aug 5, 2018

  1. nix-zsh-completions: install nix.plugin.zsh and init.zsh as well

    These files feature simple aliases and a nix-shell detector when using
    `nix-shell --run zsh`. The package itself contains the completion scripts in
    `$out/share/zsh/site-functions` (to keep it compatible with ZSH-only
    setups) and the plugins in `$out/share/zsh/plugins` for oh-my-zsh.
    Ma27 committed Aug 5, 2018
    Copy the full SHA
    1922b43 View commit details
  2. lambda-mod-zsh-theme: add hooks and patch shebangs

    This ensures that no impurity exists due to implicitly depending
    on`/usr/bin/env`.
    
    It stores the theme into `$out/share/zsh/themes` to make it possible to
    find theme using `buildEnv` and remain consistent with other ZSH
    extensions.
    Ma27 committed Aug 5, 2018
    Copy the full SHA
    efc9511 View commit details
  3. nixos/oh-my-zsh: add customPkgs option to allow multiple derivation…

    …s for `ZSH_CUSTOM`
    
    If multiple third-party modules shall be used for `oh-my-zsh` it has to
    be possible to create another env which composes all the packages.
    
    Now it can be done like this:
    
    ```
    { pkgs, ... }:
    {
      programs.zsh.enable = true;
      programs.zsh.ohMyZsh = {
        enable = true;
        customPkgs = with pkgs; [
          lambda-mod-zsh-theme
          nix-zsh-completions
        ];
        theme = "lambda-mod";
        plugins = [ "nix" ];
      };
    }
    ```
    
    Please keep in mind that this is not compatible with
    `programs.zsh.ohMyZsh.custom`, only one of these options can be used
    ATM.
    
    Each package should store its outputs into
    `$out/share/zsh/<output-name>`. Completions (and ZSH-only) extensions
    should live in the `fpath` (`$out/share/zsh/site-functions`), plugins in
    `.../plugins` and themes in `.../themes` (please refer to
    fdb6bf6ed68c2f089ae6c729dfeaa3eddea2ce6a and 406d64aad162b3a4881747be4e24705fb5182573).
    
    All scripts in `customPkgs` will be linked together using `linkFarm` to
    provide a single directory for all scripts from all derivations in
    `customPkgs` as suggested in NixOS/nixpkgs#43282 (comment).
    Ma27 committed Aug 5, 2018
    Copy the full SHA
    39b8545 View commit details

Commits on Aug 7, 2018

  1. nixos/oh-my-zsh: add documentation

    In the last year `programs.oh-my-zsh` gained more complexity and since
    the introduction of features like `customPkgs` which builds a
    `ZSH_CUSTOM` path from a sequence of derivation a documentation may be
    fairly helpful to make the knowledge how to use the module and how to
    package new ZSH plugins visible.
    
    See NixOS/nixpkgs#43282 (comment)
    Ma27 committed Aug 7, 2018
    Copy the full SHA
    bd40c92 View commit details
  2. triton: init at 6.1.2

    alyssais committed Aug 7, 2018
    Copy the full SHA
    1186bdb View commit details
  3. libinfinity: modernize expression

    * Use multiple outputs to reduce the number of rebuilds necessary.
    * Fix build with GTK+ support
    jtojnar committed Aug 7, 2018
    Copy the full SHA
    4ce95e4 View commit details

Commits on Aug 8, 2018

  1. gobby5: 0.5.0 → unstable-2018-04-03

    fix build
    jtojnar committed Aug 8, 2018
    Copy the full SHA
    59a2753 View commit details
  2. Copy the full SHA
    3811efb View commit details

Commits on Aug 10, 2018

  1. Copy the full SHA
    ced374c View commit details
  2. Copy the full SHA
    0dd9403 View commit details

Commits on Aug 11, 2018

  1. vault: 0.10.3 -> 0.10.4

    LnL7 committed Aug 11, 2018
    Copy the full SHA
    bf2d73c View commit details
  2. antlr: fix license

    See #43716
    bhipple committed Aug 11, 2018
    Copy the full SHA
    34d7a37 View commit details
  3. Copy the full SHA
    c75576f View commit details
  4. gambit, gerbil: use stdenv = gccStdenv

    clang builds gambit 10x slower to produce code that is 3x slower than
    when using GCC. So use GCC to build Gambit and Gerbil.
    fare committed Aug 11, 2018
    Copy the full SHA
    d9f419b View commit details

Commits on Aug 12, 2018

  1. Copy the full SHA
    83a1592 View commit details
  2. flootty: 3.2.1 -> 3.2.2

    Enzime committed Aug 12, 2018
    Copy the full SHA
    78961b6 View commit details
  3. Merge pull request #44898 from LnL7/vault-0.10.4

    vault: 0.10.3 -> 0.10.4
    srhb authored Aug 12, 2018
    Copy the full SHA
    0e7076e View commit details
  4. Merge pull request #44713 from vbgl/coq-coq-ext-lib-0.9.8

    coqPackages.coq-ext-lib: 0.9.5 -> {0.9.7,0.9.8}
    srhb authored Aug 12, 2018
    Copy the full SHA
    50674be View commit details
  5. Merge pull request #44847 from fare-patches/master

    Update Gambit and Gerbil
    7c6f434c authored Aug 12, 2018
    Copy the full SHA
    f4f93d6 View commit details
  6. Merge pull request #44889 from Enzime/update/flootty

    Remove redundant flootty package and update the correct package
    dotlambda authored Aug 12, 2018
    Copy the full SHA
    4af9ee4 View commit details
  7. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.10.2-2-g5e5293d from Hackage revision
    commercialhaskell/all-cabal-hashes@42f8c34.
    peti committed Aug 12, 2018
    Copy the full SHA
    3fe0751 View commit details
  8. Copy the full SHA
    8121eeb View commit details
  9. kubectx: init at v0.5.1

    periklis committed Aug 12, 2018
    Copy the full SHA
    56b756e View commit details
  10. qstopmotion: 2.3.2 -> 2.4.0 (#44642)

    leenaars authored and xeji committed Aug 12, 2018
    Copy the full SHA
    3703799 View commit details
  11. Merge pull request #44929 from periklis/package-kubectx

    kubectx: init at v0.5.1
    srhb authored Aug 12, 2018
    Copy the full SHA
    1d7c7cc View commit details
  12. josm: 14026 -> 14066

    rycee committed Aug 12, 2018
    Copy the full SHA
    d61de06 View commit details
  13. nixos/systemd-boot: Add missing newline

    This fixes an issue where setting both
    `boot.loader.systemd-boot.editor` to `false` and
    `boot.loader.systemd-boot.consoleMode` to any value would concatenate
    the two configuration lines in the output, resulting in an invalid
    `loader.conf`.
    thblt committed Aug 12, 2018
    Copy the full SHA
    d470a40 View commit details
  14. Merge pull request #44935 from thblt/fixup1

    nixos/systemd-boot: Add missing newline
    srhb authored Aug 12, 2018
    Copy the full SHA
    fb72358 View commit details
  15. Merge pull request #44899 from bhipple/fix/antlr-license

    antlr: fix license
    matthewbauer authored Aug 12, 2018
    Copy the full SHA
    4c1d5a8 View commit details
  16. Merge pull request #43282 from Ma27/support-external-zsh-plugins

    nixos/ohMyZsh: allow multiple derivations in `ZSH_CUSTOM`
    infinisil authored Aug 12, 2018
    Copy the full SHA
    8fb7ab9 View commit details
  17. Merge pull request #44618 from alyssais/triton

    triton: init at 6.1.2
    infinisil authored Aug 12, 2018
    Copy the full SHA
    cfa4975 View commit details
  18. Merge pull request #44651 from jtojnar/gobby

    gobby5: fix build
    jtojnar authored Aug 12, 2018
    Copy the full SHA
    f496d26 View commit details
  19. pulseeffects: 4.2.3 → 4.2.6

    jtojnar committed Aug 12, 2018
    Copy the full SHA
    e97b493 View commit details
  20. redis: 4.0.10 -> 4.0.11 (#44684)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/redis/versions.
    r-ryantm authored and xeji committed Aug 12, 2018
    Copy the full SHA
    c86a50b View commit details
  21. pywal: 2.0.5 -> 3.1.0 (#44924)

    0x6C38 authored and dotlambda committed Aug 12, 2018
    Copy the full SHA
    7c66a90 View commit details
  22. unifont: 11.0.01 -> 11.0.02

    rycee committed Aug 12, 2018
    Copy the full SHA
    a05e006 View commit details
  23. Merge pull request #44876 from eadwu/display-managers/pulseaudio-rely…

    …-on-socket
    
    nixos/display-managers: rely on socket to activate pulseaudio
    srhb authored Aug 12, 2018
    Copy the full SHA
    b4d15af View commit details
  24. disnixos: 0.7 -> 0.7.1

    svanderburg committed Aug 12, 2018
    Copy the full SHA
    996c0d6 View commit details
Showing with 1,297 additions and 367 deletions.
  1. +47 −5 nixos/modules/programs/zsh/oh-my-zsh.nix
  2. +125 −0 nixos/modules/programs/zsh/oh-my-zsh.xml
  3. +4 −4 nixos/modules/services/editors/infinoted.nix
  4. +0 −4 nixos/modules/services/x11/display-managers/default.nix
  5. +1 −1 nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
  6. +2 −2 pkgs/applications/audio/pulseeffects/default.nix
  7. +12 −16 pkgs/applications/editors/gobby/default.nix
  8. +2 −2 pkgs/applications/misc/josm/default.nix
  9. +17 −8 pkgs/applications/video/qstopmotion/default.nix
  10. +4 −4 pkgs/data/fonts/unifont/default.nix
  11. +2 −1 pkgs/development/compilers/gambit/default.nix
  12. +6 −4 pkgs/development/compilers/gambit/unstable.nix
  13. +2 −1 pkgs/development/compilers/gerbil/default.nix
  14. +6 −5 pkgs/development/compilers/gerbil/unstable.nix
  15. +2 −1 pkgs/development/coq-modules/coq-ext-lib/default.nix
  16. +1 −1 pkgs/development/haskell-modules/configuration-common.nix
  17. +539 −201 pkgs/development/haskell-modules/hackage-packages.nix
  18. +46 −45 pkgs/development/libraries/libinfinity/default.nix
  19. +1 −0 pkgs/development/node-packages/node-packages-v6.json
  20. +390 −0 pkgs/development/node-packages/node-packages-v6.nix
  21. +6 −10 pkgs/development/tools/flootty/default.nix
  22. +38 −0 pkgs/development/tools/kubectx/default.nix
  23. +1 −0 pkgs/development/tools/parsing/antlr/2.7.7.nix
  24. +2 −1 pkgs/development/tools/parsing/antlr/3.4.nix
  25. +2 −1 pkgs/development/tools/parsing/antlr/3.5.nix
  26. +2 −0 pkgs/development/tools/parsing/antlr/4.7.nix
  27. +2 −2 pkgs/servers/nosql/redis/default.nix
  28. +7 −3 pkgs/shells/zsh/lambda-mod-zsh-theme/default.nix
  29. +6 −5 pkgs/shells/zsh/nix-zsh-completions/default.nix
  30. +2 −2 pkgs/tools/graphics/pywal/default.nix
  31. +3 −3 pkgs/tools/package-management/disnix/disnixos/default.nix
  32. +6 −8 pkgs/tools/security/vault/default.nix
  33. +11 −11 pkgs/top-level/all-packages.nix
  34. +0 −16 pkgs/top-level/python-packages.nix
52 changes: 47 additions & 5 deletions nixos/modules/programs/zsh/oh-my-zsh.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,30 @@
with lib;

let

cfg = config.programs.zsh.ohMyZsh;

mkLinkFarmEntry = name: dir:
let
env = pkgs.buildEnv {
name = "zsh-${name}-env";
paths = cfg.customPkgs;
pathsToLink = "/share/zsh/${dir}";
};
in
{ inherit name; path = "${env}/share/zsh/${dir}"; };

mkLinkFarmEntry' = name: mkLinkFarmEntry name name;

custom =
if cfg.custom != null then cfg.custom
else if length cfg.customPkgs == 0 then null
else pkgs.linkFarm "oh-my-zsh-custom" [
(mkLinkFarmEntry' "themes")
(mkLinkFarmEntry "completions" "site-functions")
(mkLinkFarmEntry' "plugins")
];

in
{
options = {
@@ -34,10 +57,19 @@ in
};

custom = mkOption {
default = "";
type = types.str;
default = null;
type = with types; nullOr str;
description = ''
Path to a custom oh-my-zsh package to override config of oh-my-zsh.
(Can't be used along with `customPkgs`).
'';
};

customPkgs = mkOption {
default = [];
type = types.listOf types.package;
description = ''
List of custom packages that should be loaded into `oh-my-zsh`.
'';
};

@@ -67,16 +99,16 @@ in

environment.systemPackages = [ cfg.package ];

programs.zsh.interactiveShellInit = with builtins; ''
programs.zsh.interactiveShellInit = ''
# oh-my-zsh configuration generated by NixOS
export ZSH=${cfg.package}/share/oh-my-zsh
${optionalString (length(cfg.plugins) > 0)
"plugins=(${concatStringsSep " " cfg.plugins})"
}
${optionalString (stringLength(cfg.custom) > 0)
"ZSH_CUSTOM=\"${cfg.custom}\""
${optionalString (custom != null)
"ZSH_CUSTOM=\"${custom}\""
}
${optionalString (stringLength(cfg.theme) > 0)
@@ -92,5 +124,15 @@ in
source $ZSH/oh-my-zsh.sh
'';

assertions = [
{
assertion = cfg.custom != null -> cfg.customPkgs == [];
message = "If `cfg.custom` is set for `ZSH_CUSTOM`, `customPkgs` can't be used!";
}
];

};

meta.doc = ./oh-my-zsh.xml;
}
125 changes: 125 additions & 0 deletions nixos/modules/programs/zsh/oh-my-zsh.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="module-programs-zsh-ohmyzsh">

<title>Oh my ZSH</title>

<para><literal><link xlink:href="https://ohmyz.sh/">oh-my-zsh</link></literal> is a framework
to manage your <link xlink:href="https://www.zsh.org/">ZSH</link> configuration
including completion scripts for several CLI tools or custom prompt themes.</para>

<section><title>Basic usage</title>
<para>The module uses the <literal>oh-my-zsh</literal> package with all available features. The
initial setup using Nix expressions is fairly similar to the configuration format
of <literal>oh-my-zsh</literal>.

<programlisting>
{
programs.ohMyZsh = {
enable = true;
plugins = [ "git" "python" "man" ];
theme = "agnoster";
};
}
</programlisting>

For a detailed explanation of these arguments please refer to the
<link xlink:href="https://github.com/robbyrussell/oh-my-zsh/wiki"><literal>oh-my-zsh</literal> docs</link>.
</para>
<para>The expression generates the needed
configuration and writes it into your <literal>/etc/zshrc</literal>.
</para></section>

<section><title>Custom additions</title>

<para>Sometimes third-party or custom scripts such as a modified theme may be needed.
<literal>oh-my-zsh</literal> provides the
<link xlink:href="https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-internals"><literal>ZSH_CUSTOM</literal></link>
environment variable for this which points to a directory with additional scripts.</para>

<para>The module can do this as well:

<programlisting>
{
programs.ohMyZsh.custom = "~/path/to/custom/scripts";
}
</programlisting>
</para></section>

<section><title>Custom environments</title>

<para>There are several extensions for <literal>oh-my-zsh</literal> packaged in <literal>nixpkgs</literal>.
One of them is <link xlink:href="https://github.com/spwhitt/nix-zsh-completions">nix-zsh-completions</link>
which bundles completion scripts and a plugin for <literal>oh-my-zsh</literal>.</para>

<para>Rather than using a single mutable path for <literal>ZSH_CUSTOM</literal>, it's also possible to
generate this path from a list of Nix packages:

<programlisting>
{ pkgs, ... }:
{
programs.ohMyZsh.customPkgs = with pkgs; [
pkgs.nix-zsh-completions
# and even more...
];
}
</programlisting>

Internally a single store path will be created using <literal>buildEnv</literal>.
Please refer to the docs of
<link xlink:href="https://nixos.org/nixpkgs/manual/#sec-building-environment"><literal>buildEnv</literal></link>
for further reference.</para>

<para><emphasis>Please keep in mind that this is not compatible with <literal>programs.ohMyZsh.custom</literal>
as it requires an immutable store path while <literal>custom</literal> shall remain mutable! An evaluation failure
will be thrown if both <literal>custom</literal> and <literal>customPkgs</literal> are set.</emphasis>
</para></section>

<section><title>Package your own customizations</title>

<para>If third-party customizations (e.g. new themes) are supposed to be added to <literal>oh-my-zsh</literal>
there are several pitfalls to keep in mind:</para>

<itemizedlist>
<listitem>
<para>To comply with the default structure of <literal>ZSH</literal> the entire output needs to be written to
<literal>$out/share/zsh.</literal></para>
</listitem>
<listitem>
<para>Completion scripts are supposed to be stored at <literal>$out/share/zsh/site-functions</literal>. This directory
is part of the <literal><link xlink:href="http://zsh.sourceforge.net/Doc/Release/Functions.html">fpath</link></literal>
and the package should be compatible with pure <literal>ZSH</literal> setups. The module will automatically link
the contents of <literal>site-functions</literal> to completions directory in the proper store path.</para>
</listitem>
<listitem>
<para>The <literal>plugins</literal> directory needs the structure <literal>pluginname/pluginname.plugin.zsh</literal>
as structured in the <link xlink:href="https://github.com/robbyrussell/oh-my-zsh/tree/91b771914bc7c43dd7c7a43b586c5de2c225ceb7/plugins">upstream repo.</link>
</para>
</listitem>
</itemizedlist>

<para>
A derivation for <literal>oh-my-zsh</literal> may look like this:
<programlisting>
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
name = "exemplary-zsh-customization-${version}";
version = "1.0.0";
src = fetchFromGitHub {
# path to the upstream repository
};

dontBuild = true;
installPhase = ''
mkdir -p $out/share/zsh/site-functions
cp {themes,plugins} $out/share/zsh
cp completions $out/share/zsh/site-functions
'';
}
</programlisting>
</para>
</section>
</chapter>
8 changes: 4 additions & 4 deletions nixos/modules/services/editors/infinoted.nix
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@ in {

package = mkOption {
type = types.package;
default = pkgs.libinfinity.override { daemon = true; };
defaultText = "pkgs.libinfinity.override { daemon = true; }";
default = pkgs.libinfinity;
defaultText = "pkgs.libinfinity";
description = ''
Package providing infinoted
'';
@@ -119,7 +119,7 @@ in {
users.groups = optional (cfg.group == "infinoted")
{ name = "infinoted";
};

systemd.services.infinoted =
{ description = "Gobby Dedicated Server";

@@ -129,7 +129,7 @@ in {
serviceConfig = {
Type = "simple";
Restart = "always";
ExecStart = "${cfg.package}/bin/infinoted-${versions.majorMinor cfg.package.version} --config-file=/var/lib/infinoted/infinoted.conf";
ExecStart = "${cfg.package.infinoted} --config-file=/var/lib/infinoted/infinoted.conf";
User = cfg.user;
Group = cfg.group;
PermissionsStartOnly = true;
4 changes: 0 additions & 4 deletions nixos/modules/services/x11/display-managers/default.nix
Original file line number Diff line number Diff line change
@@ -56,10 +56,6 @@ let
# Start PulseAudio if enabled.
${optionalString (config.hardware.pulseaudio.enable) ''
${optionalString (!config.hardware.pulseaudio.systemWide)
"${config.hardware.pulseaudio.package.out}/bin/pulseaudio --start"
}
# Publish access credentials in the root window.
if ${config.hardware.pulseaudio.package.out}/bin/pulseaudio --dump-modules | grep module-x11-publish &> /dev/null; then
${config.hardware.pulseaudio.package.out}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ def write_loader_conf(profile, generation):
else:
f.write("default nixos-generation-%d\n" % (generation))
if not @editor@:
f.write("editor 0");
f.write("editor 0\n");
f.write("console-mode @consoleMode@\n");
os.rename("@efiSysMountPoint@/loader/loader.conf.tmp", "@efiSysMountPoint@/loader/loader.conf")

4 changes: 2 additions & 2 deletions pkgs/applications/audio/pulseeffects/default.nix
Original file line number Diff line number Diff line change
@@ -42,13 +42,13 @@ let
];
in stdenv.mkDerivation rec {
name = "pulseeffects-${version}";
version = "4.2.3";
version = "4.2.6";

src = fetchFromGitHub {
owner = "wwmm";
repo = "pulseeffects";
rev = "v${version}";
sha256 = "0s3lc0xkr48wzk0b6akq4yw19n0iwfi9jyji8bpdgj5y7kjg5mqm";
sha256 = "1b5h760bb1wgn4avirjjri5fcfqvnsr076qnhrdiqcic3vgircsm";
};

nativeBuildInputs = [
28 changes: 12 additions & 16 deletions pkgs/applications/editors/gobby/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
{ avahiSupport ? false # build support for Avahi in libinfinity
, gnomeSupport ? false # build support for Gnome(gnome-vfs)
, stdenv, fetchurl, pkgconfig
, gtkmm2, gsasl, gtksourceview, libxmlxx, libinfinity, intltool
, gnome_vfs ? null}:
, stdenv, fetchurl, fetchFromGitHub, autoconf, automake, pkgconfig, wrapGAppsHook
, gtkmm3, gsasl, gtksourceview3, libxmlxx, libinfinity, intltool, itstool, gnome3 }:

let
libinf = libinfinity.override { gtkWidgets = true; inherit avahiSupport; };

in stdenv.mkDerivation rec {

name = "gobby-0.5.0";
src = fetchurl {
url = "http://releases.0x539.de/gobby/${name}.tar.gz";
sha256 = "165x0r668ma5blziisvbr8qig3jw9hf7i6w8r7wwvz3wsac3bswc";
name = "gobby-unstable-2018-04-03";
src = fetchFromGitHub {
owner = "gobby";
repo = "gobby";
rev = "ea4df27c9b6b885434797b0071ce198b23f9f63b";
sha256 = "0q7lq64yn16lxvj4jphs8y9194h0xppj8k7y9x8b276krraak2az";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtkmm2 gsasl gtksourceview libxmlxx libinf intltool ]
++ stdenv.lib.optional gnomeSupport gnome_vfs;

configureFlags = ''
'';
nativeBuildInputs = [ autoconf automake pkgconfig intltool itstool gnome3.yelp-tools wrapGAppsHook ];
buildInputs = [ gtkmm3 gsasl gtksourceview3 libxmlxx libinf ];

preConfigure = "./autogen.sh";

meta = with stdenv.lib; {
homepage = http://gobby.0x539.de/;
4 changes: 2 additions & 2 deletions pkgs/applications/misc/josm/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "josm-${version}";
version = "14026";
version = "14066";

src = fetchurl {
url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar";
sha256 = "1ysi23j2yj5b6cn3xdsrl4xp56klpw4xa7c4gv90z2dllx06mqli";
sha256 = "06mhaz5vr19ydqc5irhgcbl0s8fifwvaq60iz2nsnlxb1pw89xia";
};

buildInputs = [ jre10 makeWrapper ];
25 changes: 17 additions & 8 deletions pkgs/applications/video/qstopmotion/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
{ stdenv, fetchurl, qt5, ffmpeg, guvcview
, cmake, ninja, libxml2, gettext, pkgconfig, libgphoto2, gphoto2, v4l_utils
, libv4l, pcre }:
{ stdenv, lib, fetchurl, qt5, ffmpeg, guvcview, cmake, ninja, libxml2
, gettext, pkgconfig, libgphoto2, gphoto2, v4l_utils, libv4l, pcre
, qwt, extra-cmake-modules }:

stdenv.mkDerivation rec {
pname = "qstopmotion";
version = "2.3.2";
version = "2.4.0";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://sourceforge/project/${pname}/Version_2_3_2/${name}-Source.tar.gz";
sha256 = "1vbiznwyc05jqg0dpmgxmvf7kdzmlck0i8v2c5d69kgrdnaypcrf";
url = "mirror://sourceforge/project/${pname}/Version_2_4_0/${name}-Source.tar.gz";
sha256 = "0pbyq6nrr9g3crlsng660768167s0fybvcpzbfc0w9kkhs2jwrr2";
};

buildInputs = [ qt5.qtbase ffmpeg guvcview v4l_utils libv4l pcre ];
buildInputs = with qt5; [ v4l_utils libv4l pcre qtbase qtmultimedia ffmpeg guvcview
qwt qtquickcontrols qtimageformats qtxmlpatterns ];

nativeBuildInputs = [ pkgconfig cmake ninja gettext libgphoto2 gphoto2 libxml2 libv4l ];
nativeBuildInputs = [ pkgconfig cmake extra-cmake-modules ninja
gettext libgphoto2 gphoto2 libxml2 libv4l ];

patchPhase = ''
substituteInPlace CMakeLists.txt \
--replace "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml" \
"find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml Multimedia"
grep -rl 'qwt' . | xargs sed -i 's@<qwt/qwt_slider.h>@<qwt_slider.h>@g'
'';

meta = with stdenv.lib; {
homepage = http://www.qstopmotion.org;
8 changes: 4 additions & 4 deletions pkgs/data/fonts/unifont/default.nix
Original file line number Diff line number Diff line change
@@ -2,16 +2,16 @@

stdenv.mkDerivation rec {
name = "unifont-${version}";
version = "11.0.01";
version = "11.0.02";

ttf = fetchurl {
url = "mirror://gnu/unifont/${name}/${name}.ttf";
sha256 = "03nnfnh4j60a4hy0d4hqpnvhlfx437hp4g1wjfjy91vzrcbmvkwi";
sha256 = "0l8p07m566131xdinv1pcfc578jpvn72n6dhqmgivp8myai2xkzx";
};

pcf = fetchurl {
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
sha256 = "03bqqz2ipy3afhwsfy30c2v97cc27grw11lc0vzcvrgvin9ys2v1";
sha256 = "1hcl71fjchngcb2b4mwl4hhx886faaniv86x2xgk8850766qpnmy";
};

nativeBuildInputs = [ mkfontscale mkfontdir ];
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {

outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "1ncllq42x1mlblf6h44garc3b5hkxv9dkpgbaipzll22p1l29yrf";
outputHash = "16ni07cfw38s7cj8bdsfi7fa1qahm3k90cmm4gn40qvz35i17x15";

meta = with stdenv.lib; {
description = "Unicode font for Base Multilingual Plane";
Loading