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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1a55b2b6b061
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 62fbcea80703
Choose a head ref
Loading
Showing with 682 additions and 880 deletions.
  1. +25 −16 nixos/modules/services/desktops/geoclue2.nix
  2. +71 −0 pkgs/applications/accessibility/contrast/default.nix
  3. +3 −3 pkgs/applications/blockchains/jormungandr/default.nix
  4. +82 −0 pkgs/applications/misc/elogind/default.nix
  5. +2 −2 pkgs/applications/networking/browsers/vivaldi/default.nix
  6. +29 −7 pkgs/applications/networking/instant-messengers/telepathy/mission-control/default.nix
  7. +8 −27 pkgs/data/fonts/twitter-color-emoji/default.nix
  8. +2 −2 pkgs/desktops/enlightenment/econnman.nix
  9. +35 −33 pkgs/desktops/enlightenment/efl.nix
  10. +1 −1 pkgs/desktops/enlightenment/enlightenment.nix
  11. +1 −1 pkgs/desktops/enlightenment/ephoto.nix
  12. +1 −1 pkgs/desktops/enlightenment/rage.nix
  13. +3 −3 pkgs/desktops/enlightenment/terminology.nix
  14. +110 −27 pkgs/desktops/gnome-3/core/empathy/default.nix
  15. +150 −725 pkgs/development/compilers/elm/packages/node-packages.nix
  16. +26 −0 pkgs/development/libraries/libck/default.nix
  17. +16 −3 pkgs/development/libraries/polkit/default.nix
  18. +1 −2 pkgs/development/python-modules/blivet/default.nix
  19. +3 −3 pkgs/development/python-modules/python-efl/default.nix
  20. +6 −0 pkgs/development/r-modules/default.nix
  21. +2 −2 pkgs/development/tools/analysis/brakeman/default.nix
  22. +2 −2 pkgs/development/tools/analysis/flow/default.nix
  23. +6 −6 pkgs/development/tools/analysis/radare2/default.nix
  24. +4 −4 pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
  25. +7 −3 pkgs/development/web/cypress/default.nix
  26. +3 −3 pkgs/shells/zsh/oh-my-zsh/default.nix
  27. +13 −3 pkgs/tools/misc/scfbuild/default.nix
  28. +46 −0 pkgs/tools/misc/scfbuild/python-3.patch
  29. +7 −1 pkgs/top-level/all-packages.nix
  30. +17 −0 pkgs/top-level/python-packages.nix
41 changes: 25 additions & 16 deletions nixos/modules/services/desktops/geoclue2.nix
Original file line number Diff line number Diff line change
@@ -188,34 +188,41 @@ in

systemd.packages = [ package ];

users.users.geoclue = {
isSystemUser = true;
home = "/var/lib/geoclue";
group = "geoclue";
description = "Geoinformation service";
};

users.groups.geoclue = {};
# we cannot use DynamicUser as we need the the geoclue user to exist for the dbus policy to work
users = {
users.geoclue = {
isSystemUser = true;
home = "/var/lib/geoclue";
group = "geoclue";
description = "Geoinformation service";
};

systemd.tmpfiles.rules = [
"d /var/lib/geoclue 0755 geoclue geoclue"
];
groups.geoclue = {};
};

# restart geoclue service when the configuration changes
systemd.services.geoclue.restartTriggers = [
config.environment.etc."geoclue/geoclue.conf".source
];
systemd.services.geoclue = {
# restart geoclue service when the configuration changes
restartTriggers = [
config.environment.etc."geoclue/geoclue.conf".source
];
serviceConfig.StateDirectory = "geoclue";
};

# this needs to run as a user service, since it's associated with the
# user who is making the requests
systemd.user.services = mkIf cfg.enableDemoAgent {
geoclue-agent = {
description = "Geoclue agent";
script = "${package}/libexec/geoclue-2.0/demos/agent";
# this should really be `partOf = [ "geoclue.service" ]`, but
# we can't be part of a system service, and the agent should
# be okay with the main service coming and going
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "exec";
ExecStart = "${package}/libexec/geoclue-2.0/demos/agent";
Restart = "on-failure";
PrivateTmp = true;
};
};
};

@@ -256,4 +263,6 @@ in
};
} // mapAttrs' appConfigToINICompatible cfg.appConfig);
};

meta.maintainers = with lib.maintainers; [ worldofpeace ];
}
71 changes: 71 additions & 0 deletions pkgs/applications/accessibility/contrast/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{ stdenv
, fetchFromGitLab
, cairo
, dbus
, desktop-file-utils
, gettext
, glib
, gtk3
, libhandy
, meson
, ninja
, pango
, pkgconfig
, python3
, rustc
, rustPlatform
, wrapGAppsHook
}:

rustPlatform.buildRustPackage rec {
pname = "contrast";
version = "0.0.2";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
group = "World";
owner = "design";
repo = "contrast";
rev = version;
sha256 = "0rm705zrk9rfv31pwbqxrswi5v6vhnghxa8dgxjmcrh00l8dm6j9";
};

cargoSha256 = "06vgc89d93fhjcyy9d1v6lf8kr34pl5bbpwbv2jpfahpj9y84bgj";

nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkgconfig
python3
wrapGAppsHook
];

buildInputs = [
cairo
dbus
glib
gtk3
libhandy
pango
];

postPatch = ''
patchShebangs build-aux/meson_post_install.py
'';

# Don't use buildRustPackage phases, only use it for rust deps setup
configurePhase = null;
buildPhase = null;
checkPhase = null;
installPhase = null;

meta = with stdenv.lib; {
description = "Checks whether the contrast between two colors meet the WCAG requirements";
homepage = https://gitlab.gnome.org/World/design/contrast;
license = licenses.gpl3;
maintainers = with maintainers; [ jtojnar ];
};
}

6 changes: 3 additions & 3 deletions pkgs/applications/blockchains/jormungandr/default.nix
Original file line number Diff line number Diff line change
@@ -10,16 +10,16 @@

rustPlatform.buildRustPackage rec {
pname = "jormungandr";
version = "0.7.0-rc2";
version = "0.7.0-rc3";

src = fetchgit {
url = "https://github.com/input-output-hk/${pname}";
rev = "v${version}";
sha256 = "10zx23qkg5kvizz0nk9n70nrk3y4qqpr84a98xg9bzxh84hm4d4z";
sha256 = "09hfmzgz1imz22w27c0aal6v7m4yfivh0sk63mawcd4m7sa6045c";
fetchSubmodules = true;
};

cargoSha256 = "1pp829azj6aw68ba637rm852sj61nxznxfzrlqs9ds6adk9h7abs";
cargoSha256 = "0syfwykwzfm9nqpna0qrmjiv4dp0rxxbpxv8qawq9ivs9z8fbq2m";

nativeBuildInputs = [ pkgconfig protobuf ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
82 changes: 82 additions & 0 deletions pkgs/applications/misc/elogind/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, m4
, gperf
, getent
, libcap
, gettext
, pkgconfig
, udev
, eudev
, libxslt
, python3
, docbook5
, docbook_xsl
, docbook_xsl_ns
, docbook_xml_dtd_42
, docbook_xml_dtd_45

# Defaulting to false because usually the rationale for using elogind is to
# use it in situation where a systemd dependency does not work (especially
# when building with musl, which elogind explicitly supports).
, enableSystemd ? false
}:

with stdenv.lib;

stdenv.mkDerivation rec {
pname = "elogind";
version = "239.5";

src = fetchFromGitHub {
owner = "elogind";
repo = pname;
rev = "v${version}";
sha256 = "1gdiy4vbx4gs2hnb79x14zi530mlq26glxpzp3c95w8l058wj4ba";
};

nativeBuildInputs = [
meson
ninja
m4
pkgconfig
gperf
getent
libcap
gettext
libxslt.bin # xsltproc
docbook5 docbook_xsl docbook_xsl_ns docbook_xml_dtd_42 docbook_xml_dtd_45 # needed for docbook without Internet
(python3.withPackages (p: with p; [ lxml ])) # fixes: man/meson.build:111:0: ERROR: Could not execute command "/build/source/tools/xml_helper.py".
];

buildInputs =
if enableSystemd then [ udev ] else [ eudev ];

# Inspired by the systemd `preConfigure`.
# Conceptually we should patch all files required during the build, but not scripts
# supposed to run at run-time of the software (important for cross-compilation).
# This package seems to have mostly scripts that run at build time.
preConfigure = ''
for dir in tools src/test; do
patchShebangs $dir
done
patchShebangs src/basic/generate-*.{sh,py}
'';

mesonFlags = [
"-Drootprefix=${placeholder "out"}"
"-Dsysconfdir=${placeholder "out"}/etc"
];

meta = {
homepage = https://github.com/elogind/elogind;
description = ''The systemd project's "logind", extracted to a standalone package'';
platforms = platforms.linux; # probably more
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ nh2 ];
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/vivaldi/default.nix
Original file line number Diff line number Diff line change
@@ -17,11 +17,11 @@ let
vivaldiName = if isSnapshot then "vivaldi-snapshot" else "vivaldi";
in stdenv.mkDerivation rec {
pname = "vivaldi";
version = "2.8.1664.44-1";
version = "2.9.1705.31-1";

src = fetchurl {
url = "https://downloads.vivaldi.com/${branch}/vivaldi-${branch}_${version}_amd64.deb";
sha256 = "0z1d03zw0jhvi14n06qfdr1n63idq56ly7mgiv27s21zvdma887k";
sha256 = "113bycfygyx09bc5bgsmdniffp3282004yrl7gr16dssxrw52al2";
};

unpackPhase = ''
Original file line number Diff line number Diff line change
@@ -1,22 +1,44 @@
{ stdenv, fetchurl, pkgconfig, gnome3, telepathy-glib, libxslt, makeWrapper }:
{ stdenv
, fetchurl
, pkgconfig
, gnome3
, telepathy-glib
, python3
, libxslt
, makeWrapper
}:

stdenv.mkDerivation rec {
name = "${pname}-5.16.4";
pname = "telepathy-mission-control";
version = "5.16.5";

outputs = [ "out" "lib" "dev" ];

src = fetchurl {
url = "https://telepathy.freedesktop.org/releases/${pname}/${name}.tar.gz";
sha256 = "1jz6wwgsfxixha6ys2hbzbk5faqnj9kh2m5qdlgx5anqgandsscp";
url = "https://telepathy.freedesktop.org/releases/${pname}/${pname}-${version}.tar.gz";
sha256 = "00xxv38cfdirnfvgyd56m60j0nkmsv5fz6p2ydyzsychicxl6ssc";
};

buildInputs = [ telepathy-glib telepathy-glib.python ]; # ToDo: optional stuff missing
buildInputs = [
python3
]; # ToDo: optional stuff missing

nativeBuildInputs = [
pkgconfig
libxslt
makeWrapper
];

nativeBuildInputs = [ pkgconfig libxslt makeWrapper ];
propagatedBuildInputs = [
telepathy-glib
];

doCheck = true;

enableParallelBuilding = true;

preFixup = ''
wrapProgram "$out/libexec/mission-control-5" \
wrapProgram "$lib/libexec/mission-control-5" \
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
35 changes: 8 additions & 27 deletions pkgs/data/fonts/twitter-color-emoji/default.nix
Original file line number Diff line number Diff line change
@@ -3,29 +3,20 @@

{ stdenv
, fetchFromGitHub
, fetchpatch
, cairo
, graphicsmagick
, pkg-config
, pngquant
, python3
, which
, zopfli
, fetchpatch
, noto-fonts-emoji
}:

let
version = "12.1.2";

# Cannot use noto-fonts-emoji.src since it is too old
# and still tries to use vendored pngquant.
notoSrc = fetchFromGitHub {
name = "noto";
owner = "googlefonts";
repo = "noto-emoji";
rev = "833a43d03246a9325e748a2d783006454d76ff66";
sha256 = "1g6ikzk8banm3ihqm9g27ggjq2mn1b1hq3zhpl13lxid6mp60s4a";
};

twemojiSrc = fetchFromGitHub {
name = "twemoji";
owner = "twitter";
@@ -34,46 +25,36 @@ let
sha256 = "0vzmlp83vnk4njcfkn03jcc1vkg2rf12zf5kj3p3a373xr4ds1zn";
};

python = python3.withPackages (pp: with pp; [
nototools
]);
in
stdenv.mkDerivation rec {
pname = "twitter-color-emoji";
inherit version;

srcs = [
notoSrc
noto-fonts-emoji.src
twemojiSrc
];

sourceRoot = notoSrc.name;
sourceRoot = noto-fonts-emoji.src.name;

postUnpack = ''
chmod -R +w ${twemojiSrc.name}
mv ${twemojiSrc.name} ${notoSrc.name}
mv ${twemojiSrc.name} ${noto-fonts-emoji.src.name}
'';

nativeBuildInputs = [
cairo
graphicsmagick
pkg-config
pngquant
python
python3
python3.pkgs.nototools
which
zopfli
];

patches = [
# Port to python3
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-port-to-python3.patch";
sha256 = "1b91abd050phxlxq7322i74nkx16fkhpw14yh97r2j4c7fqarr2q";
})
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-python3.patch";
sha256 = "0mw2c748izb6h9a19jwc0qxlb6l1kj6k8gc345lpf7lfcxfl7l59";
})
# ImageMagick -> GrahphicsMagick
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-use-gm.patch";
sha256 = "0yfmfzaaiq5163c06172g4r734aysiqyv1s28siv642vqzsqh4i2";
Loading