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: 1a1a7ed26652
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: 462cdb9aacb6
Choose a head ref
  • 16 commits
  • 13 files changed
  • 7 contributors

Commits on Sep 6, 2019

  1. mill: 0.5.0->0.5.1

    scalavision committed Sep 6, 2019
    Copy the full SHA
    24ebaf4 View commit details

Commits on Sep 7, 2019

  1. nbstripout: 0.3.1 -> 0.3.6

    jluttine committed Sep 7, 2019
    Copy the full SHA
    8b51ee3 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    00b8bf4 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    feed103 View commit details
  4. Copy the full SHA
    ae8c8f8 View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b084a3d View commit details
  6. Copy the full SHA
    5df0605 View commit details
  7. nixos/cmt: add cmt module

    Adds custom touchpad drivers for Chromebooks.
    kcalvinalvin committed Sep 7, 2019
    Copy the full SHA
    fa53852 View commit details

Commits on Sep 8, 2019

  1. nano-wallet: 18.0 -> 19.0

    jluttine committed Sep 8, 2019
    Copy the full SHA
    e38a360 View commit details
  2. Copy the full SHA
    fa0b187 View commit details
  3. inkscape: add wrapGAppsHook for icons (fixed for strictDeps)

    Resolves #68185.
    The icons in Inkscape depend on gdk-pixbuf loaders, but because
    strictDeps is set to true to fix some macOS issues it doesn't work
    (see #56943). Adding librsvg to buildInputs explicitly fixes the issue.
    rileyinman committed Sep 8, 2019
    Copy the full SHA
    cd04b61 View commit details
  4. Merge pull request #68287 from rileyinman/inkscape-strictdeps

    inkscape: add wrapGAppsHook for icons (fixed for strictDeps)
    jtojnar authored Sep 8, 2019
    Copy the full SHA
    975d5f1 View commit details
  5. Merge pull request #68254 from scalavision/mill-update-0.5.1

    mill: 0.5.0->0.5.1
    mmahut authored Sep 8, 2019
    Copy the full SHA
    8977ae2 View commit details
  6. Merge pull request #67241 from kcalvinalvin/cmt

    nixos/modules/services/x11/hardware/: add cmt module
    infinisil authored Sep 8, 2019
    Copy the full SHA
    916603c View commit details
  7. Merge pull request #68315 from jluttine/nano-wallet-19.0

    nano-wallet: 18.0 -> 19.0
    mmahut authored Sep 8, 2019
    Copy the full SHA
    df3b84a View commit details
  8. Merge pull request #68255 from jluttine/nbstripout-0.3.6

    nbstripout: 0.3.1 -> 0.3.6
    mmahut authored Sep 8, 2019
    Copy the full SHA
    462cdb9 View commit details
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -3249,6 +3249,12 @@
githubId = 1047859;
name = "Kaz Wesley";
};
kcalvinalvin = {
email = "calvin@kcalvinalvin.info";
github = "kcalvinalvin";
githubId = 37185887;
name = "Calvin Kim";
};
kentjames = {
email = "jameschristopherkent@gmail.com";
github = "kentjames";
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -853,6 +853,7 @@
./services/x11/hardware/multitouch.nix
./services/x11/hardware/synaptics.nix
./services/x11/hardware/wacom.nix
./services/x11/hardware/cmt.nix
./services/x11/gdk-pixbuf.nix
./services/x11/redshift.nix
./services/x11/urxvtd.nix
54 changes: 54 additions & 0 deletions nixos/modules/services/x11/hardware/cmt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }:

with lib;

let

cfg = config.services.xserver.cmt;
etcPath = "X11/xorg.conf.d";

in {

options = {

services.xserver.cmt = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable chrome multitouch input (cmt). Touchpad drivers that are configured for chromebooks.";
};
models = mkOption {
type = types.enum [ "atlas" "banjo" "candy" "caroline" "cave" "celes" "clapper" "cyan" "daisy" "elan" "elm" "enguarde" "eve" "expresso" "falco" "gandof" "glimmer" "gnawty" "heli" "kevin" "kip" "leon" "lulu" "orco" "pbody" "peppy" "pi" "pit" "puppy" "quawks" "rambi" "samus" "snappy" "spring" "squawks" "swanky" "winky" "wolf" "auron_paine" "auron_yuna" "daisy_skate" "nyan_big" "nyan_blaze" "veyron_jaq" "veyron_jerry" "veyron_mighty" "veyron_minnie" "veyron_speedy" ];
example = "banjo";
description = ''
Which models to enable cmt for. Enter the Code Name for your Chromebook.
Code Name can be found at <link xlink:href="https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices" />.
'';
};
}; #closes services
}; #closes options

config = mkIf cfg.enable {

services.xserver.modules = [ pkgs.xf86_input_cmt ];

environment.etc = {
"${etcPath}/40-touchpad-cmt.conf" = {
source = "${pkgs.chromium-xorg-conf}/40-touchpad-cmt.conf";
};
"${etcPath}/50-touchpad-cmt-${cfg.models}.conf" = {
source = "${pkgs.chromium-xorg-conf}/50-touchpad-cmt-${cfg.models}.conf";
};
"${etcPath}/60-touchpad-cmt-${cfg.models}.conf" = {
source = "${pkgs.chromium-xorg-conf}/60-touchpad-cmt-${cfg.models}.conf";
};
};

assertions = [
{
assertion = !config.services.xserver.libinput.enable;
message = "cmt and libinput are incompatible, you cannot enable both (in services.xserver).";
}
];
};
}
15 changes: 11 additions & 4 deletions pkgs/applications/blockchains/nano-wallet/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{lib, stdenv, fetchFromGitHub, cmake, pkgconfig, boost, libGL, qtbase}:
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, wrapQtAppsHook, boost, libGL
, qtbase}:

stdenv.mkDerivation rec {

pname = "nano-wallet";
version = "18.0";
version = "19.0";

src = fetchFromGitHub {
owner = "nanocurrency";
repo = "raiblocks";
rev = "V${version}";
sha256 = "03f9g1x7rs7vic9yzsjxsh5ddx9ys78rssbfghbccfw9qrwylh3y";
sha256 = "1y5fc4cvfqh33imjkh91sqhy5bb9kh0icwyvdgm1cl564vnjax80";
fetchSubmodules = true;
};

@@ -32,13 +33,19 @@ stdenv.mkDerivation rec {
optionToFlag = name: value: "-D${name}=${value}";
in lib.mapAttrsToList optionToFlag options;

nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
buildInputs = [ boost libGL qtbase ];

buildPhase = ''
make nano_wallet
'';

# Move executables under bin directory
postInstall = ''
mkdir -p $out/bin
mv $out/nano* $out/bin/
'';

checkPhase = ''
./core_test
'';
5 changes: 4 additions & 1 deletion pkgs/applications/graphics/inkscape/default.nix
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper
, gsl, python2, poppler, imagemagick, libwpg, librevenge
, libvisio, libcdr, libexif, potrace, cmake, hicolor-icon-theme
, librsvg, wrapGAppsHook
}:

let
@@ -40,14 +41,16 @@ stdenv.mkDerivation rec {
--replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"'
'';

nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env ]
nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env wrapGAppsHook ]
++ (with perlPackages; [ perl XMLParser ]);
buildInputs = [
libXft libpng zlib popt boehmgc
libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
gsl poppler imagemagick libwpg librevenge
libvisio libcdr libexif potrace hicolor-icon-theme

librsvg # for loading icons

python2Env perlPackages.perl
];

29 changes: 5 additions & 24 deletions pkgs/applications/version-management/nbstripout/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{lib, python2Packages, fetchFromGitHub, fetchurl, git, mercurial, coreutils}:
{lib, python2Packages, git, mercurial, coreutils}:

with python2Packages;
buildPythonApplication rec {
version = "0.3.1";
version = "0.3.6";
pname = "nbstripout";

# Mercurial should be added as a build input but because it's a Python
@@ -12,30 +12,11 @@ buildPythonApplication rec {
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ ipython nbformat ];

# PyPI source is currently missing tests. Thus, use GitHub instead.
# See: https://github.com/kynan/nbstripout/issues/73
# Use PyPI again after it has been fixed in a release.
src = fetchFromGitHub {
owner = "kynan";
repo = pname;
rev = version;
sha256 = "1jifqmszjzyaqzaw2ir83k5fdb04iyxdad4lclawpb42hbink9ws";
src = fetchPypi {
inherit pname version;
sha256 = "1x6010akw7iqxn7ba5m6malfr2fvaf0bjp3cdh983qn1s7vwlq0r";
};

patches = [
(
# Fix git diff tests by using --no-index.
# See: https://github.com/kynan/nbstripout/issues/74
#
# Remove this patch once the pull request has been merged and a new
# release made.
fetchurl {
url = "https://github.com/jluttine/nbstripout/commit/03e28424fb788dd09a95e99814977b0d0846c0b4.patch";
sha256 = "09myfb77a2wh8lqqs9fcpam97vmaw8b7zbq8n5gwn6d80zbl7dn0";
}
)
];

# for some reason, darwin uses /bin/sh echo native instead of echo binary, so
# force using the echo binary
postPatch = ''
4 changes: 2 additions & 2 deletions pkgs/development/tools/build-managers/mill/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "mill";
version = "0.5.0";
version = "0.5.1";

src = fetchurl {
url = "https://github.com/lihaoyi/mill/releases/download/${version}/${version}";
sha256 = "ecf83db96a32024f14b031ce458b1b3eed01e713265e16c42eb4a894a1a0d654";
sha256 = "1y5044m0qlwa1wlg7xkhg76agmfn7bgcf040wf56fvxhf0w78zjw";
};

nativeBuildInputs = [ makeWrapper ];
8 changes: 8 additions & 0 deletions pkgs/os-specific/linux/chromium-xorg-conf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{fetchgit }:

fetchgit {
name = "chromium-xorg-conf";
url = "https://chromium.googlesource.com/chromiumos/platform/xorg-conf";
rev = "26fb9d57e195c7e467616b35b17e2b5d279c1514";
sha256 = "0643y3l3hjk4mv4lm3h9z56h990q6k11hcr10lcqppgsii0d3zcf";
}
29 changes: 29 additions & 0 deletions pkgs/os-specific/linux/libevdevc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, coreutils, pkgconfig, glib, jsoncpp }:

stdenv.mkDerivation rec {
name = "libevdevc";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hugegreenbug";
repo = "libevdevc";
rev = "v${version}";
sha256 = "0ry30krfizh87yckmmv8n082ad91mqhhbbynx1lfidqzb6gdy2dd";
};

postPatch = ''
substituteInPlace common.mk \
--replace /bin/echo ${coreutils}/bin/echo
substituteInPlace include/module.mk \
--replace /usr/include /include
'';

makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];

meta = with stdenv.lib; {
description = "ChromiumOS libevdev. Renamed to avoid conflicts with the standard libevdev found in Linux distros.";
license = licenses.bsd3;
platforms = platforms.linux;
homepage = "https://chromium.googlesource.com/chromiumos/platform/libevdev/";
maintainers = with maintainers; [ kcalvinalvin ];
};
}
33 changes: 33 additions & 0 deletions pkgs/os-specific/linux/libgestures/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, pkgconfig, glib, jsoncpp }:

stdenv.mkDerivation rec {
name = "libgestures-${version}";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hugegreenbug";
repo = "libgestures";
rev = "v${version}";
sha256 = "0dfvads2adzx4k8cqc1rbwrk1jm2wn9wl2jk51m26xxpmh1g0zab";
};
patches = [ ./include-fix.patch ];

postPatch = ''
substituteInPlace Makefile \
--replace -Werror -Wno-error \
--replace '$(DESTDIR)/usr/include' '$(DESTDIR)/include'
'';

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib jsoncpp ];


makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];

meta = with stdenv.lib; {
description = "ChromiumOS libgestures modified to compile for Linux.";
license = licenses.bsd3;
platforms = platforms.linux;
homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures";
maintainers = with maintainers; [ kcalvinalvin ];
};
}
12 changes: 12 additions & 0 deletions pkgs/os-specific/linux/libgestures/include-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ur a/include/gestures/include/finger_metrics.h b/include/gestures/include/finger_metrics.h
--- a/include/gestures/include/finger_metrics.h 1970-01-01 09:00:01.000000000 +0900
+++ b/include/gestures/include/finger_metrics.h 2018-12-01 16:58:51.590718511 +0900
@@ -5,6 +5,8 @@
#ifndef GESTURES_FINGER_METRICS_H_
#define GESTURES_FINGER_METRICS_H_

+#include <math.h>
+
#include "gestures/include/gestures.h"
#include "gestures/include/prop_registry.h"
#include "gestures/include/vector.h"
36 changes: 36 additions & 0 deletions pkgs/os-specific/linux/xf86-input-cmt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, pkgconfig, xorgserver, xorgproto,
utilmacros, libgestures, libevdevc }:

stdenv.mkDerivation rec {
name = "xf86-input-cmt-${version}";
version = "2.0.2";
src = fetchFromGitHub {
owner = "hugegreenbug";
repo = "xf86-input-cmt";
rev = "v${version}";
sha256 = "1cnwf518nc0ybc1r3rsgc1gcql1k3785khffv0i4v3akrm9wdw98";
};

postPatch = ''
patchShebangs ./apply_patches.sh
./apply_patches.sh
'';

nativeBuildInputs = [ pkgconfig ];
buildInputs = [
xorgserver xorgproto utilmacros
libgestures libevdevc
];

configureFlags = [
"--with-sdkdir=${placeholder "out"}"
];

meta = with stdenv.lib; {
description = "Chromebook touchpad driver.";
license = licenses.bsd3;
platforms = platforms.linux;
homepage = "www.github.com/hugegreenbug/xf86-input-cmt";
maintainers = with maintainers; [ kcalvinalvin ];
};
}
8 changes: 8 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -9309,6 +9309,8 @@ in

chromedriver = callPackage ../development/tools/selenium/chromedriver { gconf = gnome2.GConf; };

chromium-xorg-conf = callPackage ../os-specific/linux/chromium-xorg-conf { };

chrpath = callPackage ../development/tools/misc/chrpath { };

chruby = callPackage ../development/tools/misc/chruby { rubies = null; };
@@ -16512,6 +16514,8 @@ in

wpa_supplicant_gui = libsForQt5.callPackage ../os-specific/linux/wpa_supplicant/gui.nix { };

xf86_input_cmt = callPackage ../os-specific/linux/xf86-input-cmt { };

xf86_input_mtrack = callPackage ../os-specific/linux/xf86-input-mtrack { };

xf86_input_multitouch = callPackage ../os-specific/linux/xf86-input-multitouch { };
@@ -16810,6 +16814,10 @@ in

liberation-sans-narrow = callPackage ../data/fonts/liberation-sans-narrow { };

libevdevc = callPackage ../os-specific/linux/libevdevc { };

libgestures = callPackage ../os-specific/linux/libgestures { };

liberastika = callPackage ../data/fonts/liberastika { };

libertine = callPackage ../data/fonts/libertine { };