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: ec145bfbddfb
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: cac363c66181
Choose a head ref

Commits on Mar 22, 2020

  1. Copy the full SHA
    dcdb46c View commit details
  2. Copy the full SHA
    d91fc12 View commit details
  3. linux: 4.4.216 -> 4.4.217

    NeQuissimus committed Mar 22, 2020
    Copy the full SHA
    e00104d View commit details
  4. linux: 4.9.216 -> 4.9.217

    NeQuissimus committed Mar 22, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    7ad6125 View commit details
  5. linux: 5.4.25 -> 5.4.27

    NeQuissimus committed Mar 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3c6a5be View commit details
  6. linux: 5.5.9 -> 5.5.11

    NeQuissimus committed Mar 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d847a4f View commit details
  7. nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15

    NixOS 20.03 is built on kernel 5.4 and 19.09 is on 4.19, so we should update
    this option to the highest value possible, per linked upstream instructions from
    Amazon.
    
    (cherry picked from commit 1291764)
    bhipple committed Mar 22, 2020
    Copy the full SHA
    8353669 View commit details
  8. Merge pull request #83147 from bhipple/bp/ami

    [20.03] nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15
    grahamc authored Mar 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    75b00dd View commit details
  9. python39Full: fix to use Python 3.9 rather than 3.8

    Looks like this was a typo when python39 was added in 648152f.
    
    (cherry picked from commit c93acee)
    gnprice authored and roberth committed Mar 22, 2020
    Copy the full SHA
    5b02b91 View commit details
  10. fd: 7.4.0 -> 7.5.0

    Ma27 committed Mar 22, 2020
    Copy the full SHA
    1d12859 View commit details
  11. redo-apenwarr: 0.42 -> 0.42a; use python3 and fixed building manpage

    Removed dependency to mkdoc, which is only needed to build the webpage.
    
    (cherry picked from commit 4c9bd5d)
    ckesg authored and markuskowa committed Mar 22, 2020
    Copy the full SHA
    bdd53db View commit details
  12. kodi: fix lirc support

    * adapted to the way kodi finds the lircd socket
    * added lirc package to build support for lirc
    
    (cherry picked from commit 8f12a72)
    ckesg authored and markuskowa committed Mar 22, 2020
    Copy the full SHA
    db4300a View commit details
  13. Copy the full SHA
    f545534 View commit details

Commits on Mar 23, 2020

  1. xterm: 351 -> 353

    Ma27 committed Mar 23, 2020
    Copy the full SHA
    67e523c View commit details
  2. python3Packages.spyder-kernels: Add spyder-kernels_0_5

    Previously top-level/python-packages.nix called spyder-kernels v0.5 for
    Py2k. Now both v0.5 and v1.8 (default.nix) are in pythonPackages, as
    required by cq-editor and spyder v4 respectively.
    v0.5 also now comes from GitHub instead of PyPi, with checks enabled.
    
    (cherry picked from commit a1f45198148197dbf2a460be17a7fb50686b1b4e)
    marcus7070 committed Mar 23, 2020
    Copy the full SHA
    088ae2c View commit details
  3. python3Packages.spyder_3: Added spyder_3

    cq-editor currently requires spyder v3.x
    
    (cherry picked from commit c5ceb64a5d5c90f3b411c824a762f34cf75c9fb3)
    marcus7070 committed Mar 23, 2020
    Copy the full SHA
    c5f397f View commit details
  4. cq-editor: use spyder_3

    (cherry picked from commit d8a7d1f665c0cba02cccd95fdc88f318c87c7979)
    marcus7070 committed Mar 23, 2020
    Copy the full SHA
    ee106b9 View commit details
  5. vdr-xinelinboutput: fix pkg-config for opengl

    Up to including nixos-19.09 configure fall back and included right
    libraries. Since nixos-20.03 pkg-config returns a valid value for opengl, but
    opengl misses glx symbols.
    
    (cherry picked from commit d315b3d)
    ckesg authored and markuskowa committed Mar 23, 2020
    Copy the full SHA
    2762ade View commit details
  6. vdr-xineliboutput: 2.1.0 -> 2.2.0

    (cherry picked from commit b7dad49)
    ckesg authored and markuskowa committed Mar 23, 2020
    Copy the full SHA
    1a8cc07 View commit details
  7. openssl: Fix openssl for musl [20.03 backport]

    This is a backport of #82708
    hamishmack committed Mar 23, 2020
    Copy the full SHA
    6345a8c View commit details
  8. Merge pull request #83204 from hamishmack/release-20.03

    openssl: Fix openssl for musl [20.03 backport]
    matthewbauer authored Mar 23, 2020
    Copy the full SHA
    1ee4f0e View commit details
  9. pantheon.elementary-music: 5.0.4 -> 5.0.5

    (cherry picked from commit c7e617f)
    r-ryantm authored and worldofpeace committed Mar 23, 2020
    Copy the full SHA
    b2c7925 View commit details
  10. OCaml: do not depend on X11 for OCaml ≥ 4.09

    (cherry picked from commit 80a7615)
    vbgl committed Mar 23, 2020
    Copy the full SHA
    155574f View commit details
  11. ghc: add 8.8.3

    https://mail.haskell.org/pipermail/ghc-devs/2020-February/018643.html
    (cherry picked from commit c8554c0)
    Signed-off-by: Domen Kožar <domen@dev.si>
    ggreif authored and domenkozar committed Mar 23, 2020
    Copy the full SHA
    4120ab3 View commit details
  12. ghc-8.8.3: really use ld.gold (port #80466)

    (cherry picked from commit ff6aeef)
    Signed-off-by: Domen Kožar <domen@dev.si>
    ggreif authored and domenkozar committed Mar 23, 2020
    Copy the full SHA
    add3780 View commit details
  13. Merge pull request #83184 from marcus7070/release-20.03

    [20.03] python3Packages.spyder: add v3.x
    worldofpeace authored Mar 23, 2020
    Copy the full SHA
    fd11f3a View commit details
  14. Copy the full SHA
    f62e075 View commit details
  15. python38Packages.rope: disable for Python>=3.8

    - browsing the github page suggests the upcoming 0.17 release should support 3.8
    
    (cherry picked from commit 3d0410e)
    bcdarwin committed Mar 23, 2020
    Copy the full SHA
    bb81a6f View commit details
  16. tailscale: init at 0.96-33

    Signed-off-by: Martin Baillie <martin@baillie.email>
    (cherry picked from commit 6e055c9)
    Martin Baillie authored and danderson committed Mar 23, 2020
    Copy the full SHA
    6ce36ff View commit details
  17. tailscale: 0.96-33 -> 0.97-0.

    Fixes a severe bug with subnet routing.
    
    Signed-off-by: David Anderson <dave@natulte.net>
    (cherry picked from commit f61f686dfea53a0e5bb3faf0a5307dcc8f8d03aa)
    danderson committed Mar 23, 2020
    Copy the full SHA
    1fceda4 View commit details
  18. tailscale: switch version and git ref to use a tag.

    The tag points to the same commit hash, so the binary
    is unchanged.
    
    Signed-off-by: David Anderson <dave@natulte.net>
    (cherry picked from commit 3fa813e)
    danderson committed Mar 23, 2020
    Copy the full SHA
    752d976 View commit details
  19. python: Twisted: 19.10.0 -> 20.3.0

    (cherry picked from commit dff1df7)
    ajs124 authored and Ma27 committed Mar 23, 2020
    Copy the full SHA
    fa02997 View commit details
  20. matrix-synapse: 1.11.1 -> 1.12.0

    (cherry picked from commit 425efa5)
    ajs124 authored and Ma27 committed Mar 23, 2020
    Copy the full SHA
    905316d View commit details
  21. Merge pull request #82827 from danderson/release-20.03

    tailscale: init at 0.97-0 [20.03 backport]
    grahamc authored Mar 23, 2020
    Copy the full SHA
    d76b379 View commit details
  22. Merge pull request #83012 from bcdarwin/release-20.03

    python38Packages.rope: disable for Python>=3.8
    worldofpeace authored Mar 23, 2020
    Copy the full SHA
    017f050 View commit details

Commits on Mar 24, 2020

  1. pythonPackages.mkl-service: 2.1.0 -> 2.3.0

    Release notes: https://github.com/IntelPython/mkl-service/releases
    
    (cherry picked from commit bd42541989bdf62428c7551c07a2cf04e1c05baa)
    bhipple authored and Jon committed Mar 24, 2020
    Copy the full SHA
    4c77bcb View commit details
  2. pantheon.wingpanel-with-indicators: fix wrapping

    Since #81475 this caused the wrapper to be empty of entries from
    wrapGAppsHook because the wrapGAppsHook function doesn't add
    them anymore, and was moved to gappsWrapperArgsHook. Instead
    of just running that in postBuild it's more future proof to make this
    use stdenv.mkDerivation because we want to mess around with the
    generic builder.
    
    (cherry picked from commit db41c78)
    worldofpeace committed Mar 24, 2020
    Copy the full SHA
    1217a6c View commit details
  3. pantheon.switchboard-with-plugs: fix wrapping

    Since #81475 this caused the wrapper to be empty of entries from
    wrapGAppsHook because the wrapGAppsHook function doesn't add
    them anymore, and was moved to gappsWrapperArgsHook. Instead
    of just running that in postBuild it's more future proof to make this
    use stdenv.mkDerivation because we want to mess around with the
    generic builder.
    
    (cherry picked from commit a9e7e93)
    worldofpeace committed Mar 24, 2020
    Copy the full SHA
    b85f4d0 View commit details
  4. Copy the full SHA
    cac363c View commit details
Showing with 620 additions and 141 deletions.
  1. +4 −2 doc/languages-frameworks/haskell.section.md
  2. +6 −0 maintainers/maintainer-list.nix
  3. +8 −3 nixos/maintainers/scripts/ec2/amazon-image.nix
  4. +1 −0 nixos/modules/module-list.nix
  5. +46 −0 nixos/modules/services/networking/tailscale.nix
  6. +1 −1 nixos/modules/services/x11/desktop-managers/kodi.nix
  7. +1 −1 pkgs/applications/graphics/cq-editor/default.nix
  8. +2 −2 pkgs/applications/misc/xterm/default.nix
  9. +2 −1 pkgs/applications/video/kodi/default.nix
  10. +13 −8 pkgs/applications/video/vdr/xineliboutput/default.nix
  11. +3 −3 pkgs/desktops/pantheon/apps/elementary-music/default.nix
  12. +29 −9 pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
  13. +25 −10 pkgs/desktops/pantheon/desktop/wingpanel/wrapper.nix
  14. +240 −0 pkgs/development/compilers/ghc/8.8.3.nix
  15. +1 −1 pkgs/development/compilers/ocaml/generic.nix
  16. +3 −1 pkgs/development/libraries/openssl/default.nix
  17. +2 −2 pkgs/development/python-modules/mkl-service/default.nix
  18. +3 −1 pkgs/development/python-modules/rope/default.nix
  19. +72 −0 pkgs/development/python-modules/spyder-kernels/0.x.nix
  20. +70 −0 pkgs/development/python-modules/spyder/3.nix
  21. +2 −2 pkgs/development/python-modules/twisted/default.nix
  22. +0 −20 pkgs/development/tools/build-managers/redo-apenwarr/beautifulsoup.nix
  23. +6 −19 pkgs/development/tools/build-managers/redo-apenwarr/default.nix
  24. +0 −20 pkgs/development/tools/build-managers/redo-apenwarr/mkdocs-exclude.nix
  25. +1 −1 pkgs/development/tools/rust/cargo-make/Cargo.lock
  26. +2 −2 pkgs/development/tools/rust/cargo-make/default.nix
  27. +4 −4 pkgs/games/empty-epsilon/default.nix
  28. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  29. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  30. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  31. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  32. +2 −2 pkgs/os-specific/linux/kernel/linux-5.4.nix
  33. +2 −2 pkgs/os-specific/linux/kernel/linux-5.5.nix
  34. +2 −2 pkgs/servers/matrix-synapse/default.nix
  35. +3 −9 pkgs/servers/monitoring/prometheus/wireguard-exporter.nix
  36. +35 −0 pkgs/servers/tailscale/default.nix
  37. +3 −3 pkgs/tools/misc/fd/default.nix
  38. +3 −1 pkgs/top-level/all-packages.nix
  39. +11 −0 pkgs/top-level/haskell-packages.nix
  40. +4 −1 pkgs/top-level/python-packages.nix
6 changes: 4 additions & 2 deletions doc/languages-frameworks/haskell.section.md
Original file line number Diff line number Diff line change
@@ -112,8 +112,10 @@ haskell.compiler.ghc865 ghc-8.6.5
haskell.compiler.integer-simple.ghc865 ghc-8.6.5
haskell.compiler.ghc881 ghc-8.8.1
haskell.compiler.integer-simple.ghc881 ghc-8.8.1
haskell.compiler.ghc882 ghc-8.8.1.20191211
haskell.compiler.integer-simple.ghc882 ghc-8.8.1.20191211
haskell.compiler.ghc882 ghc-8.8.2
haskell.compiler.integer-simple.ghc882 ghc-8.8.2
haskell.compiler.ghc883 ghc-8.8.3
haskell.compiler.integer-simple.ghc883 ghc-8.8.3
haskell.compiler.ghcjs ghcjs-8.6.0.1
```

6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4506,6 +4506,12 @@
githubId = 1269099;
name = "Marius Bakke";
};
mbaillie = {
email = "martin@baillie.email";
github = "martinbaillie";
githubId = 613740;
name = "Martin Baillie";
};
mbbx6spp = {
email = "me@susanpotter.net";
github = "mbbx6spp";
11 changes: 8 additions & 3 deletions nixos/maintainers/scripts/ec2/amazon-image.nix
Original file line number Diff line number Diff line change
@@ -8,10 +8,15 @@ in {

imports = [ ../../../modules/virtualisation/amazon-image.nix ];

# Required to provide good EBS experience,
# Amazon recomments setting this to the highest possible value for a good EBS
# experience, which prior to 4.15 was 255.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html#timeout-nvme-ebs-volumes
# TODO change value to 4294967295 when kernel is updated to 4.15 or later
config.boot.kernelParams = [ "nvme_core.io_timeout=255" ];
config.boot.kernelParams =
let timeout =
if pkgs.lib.versionAtLeast config.boot.kernelPackages.kernel.version "4.15"
then "4294967295"
else "255";
in [ "nvme_core.io_timeout=${timeout}" ];

options.amazonImage = {
name = mkOption {
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -723,6 +723,7 @@
./services/networking/syncthing.nix
./services/networking/syncthing-relay.nix
./services/networking/syncplay.nix
./services/networking/tailscale.nix
./services/networking/tcpcrypt.nix
./services/networking/teamspeak3.nix
./services/networking/tedicross.nix
46 changes: 46 additions & 0 deletions nixos/modules/services/networking/tailscale.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ config, lib, pkgs, ... }:

with lib;

let cfg = config.services.tailscale;
in {
meta.maintainers = with maintainers; [ danderson mbaillie ];

options.services.tailscale = {
enable = mkEnableOption "Tailscale client daemon";

port = mkOption {
type = types.port;
default = 41641;
description = "The port to listen on for tunnel traffic (0=autoselect).";
};
};

config = mkIf cfg.enable {
systemd.services.tailscale = {
description = "Tailscale client daemon";

after = [ "network-pre.target" ];
wants = [ "network-pre.target" ];
wantedBy = [ "multi-user.target" ];

unitConfig = {
StartLimitIntervalSec = 0;
StartLimitBurst = 0;
};

serviceConfig = {
ExecStart =
"${pkgs.tailscale}/bin/tailscaled --port ${toString cfg.port}";

RuntimeDirectory = "tailscale";
RuntimeDirectoryMode = 755;

StateDirectory = "tailscale";
StateDirectoryMode = 700;

Restart = "on-failure";
};
};
};
}
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/desktop-managers/kodi.nix
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ in
services.xserver.desktopManager.session = [{
name = "kodi";
start = ''
${pkgs.kodi}/bin/kodi --lircdev /run/lirc/lircd --standalone &
LIRC_SOCKET_PATH=/run/lirc/lircd ${pkgs.kodi}/bin/kodi --standalone &
waitPID=$!
'';
}];
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/cq-editor/default.nix
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
pyqt5
pyparsing
pyqtgraph
spyder
spyder_3
pathpy
qtconsole
requests
4 changes: 2 additions & 2 deletions pkgs/applications/misc/xterm/default.nix
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@
}:

stdenv.mkDerivation rec {
name = "xterm-351";
name = "xterm-353";

src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/xterm/${name}.tgz"
"https://invisible-mirror.net/archives/xterm/${name}.tgz"
];
sha256 = "05kf586my4irrzz2bxgmwjdvynyrg9ybhvfqmx29g70w4888l2kn";
sha256 = "0s5pkfn4r8iy09s1q1y78zhnr9f3sm6wgbqir7azaqggkppd68g5";
};

buildInputs =
3 changes: 2 additions & 1 deletion pkgs/applications/video/kodi/default.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@
, libcrossguid, libmicrohttpd
, bluez, doxygen, giflib, glib, harfbuzz, lcms2, libidn, libpthreadstubs, libtasn1, libXdmcp
, libplist, p11-kit, zlib, flatbuffers, fmt, fstrcmp, rapidjson
, lirc
, dbusSupport ? true, dbus ? null
, joystickSupport ? true, cwiid ? null
, nfsSupport ? true, libnfs ? null
@@ -168,6 +169,7 @@ in stdenv.mkDerivation {
libcrossguid cwiid libplist
bluez giflib glib harfbuzz lcms2 libpthreadstubs libXdmcp
ffmpeg flatbuffers fmt fstrcmp rapidjson
lirc
# libdvdcss libdvdnav libdvdread
]
++ lib.optional dbusSupport dbus
@@ -211,7 +213,6 @@ in stdenv.mkDerivation {
"-DENABLE_EVENTCLIENTS=ON"
"-DENABLE_INTERNAL_CROSSGUID=OFF"
"-DENABLE_OPTICAL=ON"
"-DLIRC_DEVICE=/run/lirc/lircd"
] ++ lib.optional useWayland [
"-DCORE_PLATFORM_NAME=wayland"
"-DWAYLAND_RENDER_SYSTEM=gl"
21 changes: 13 additions & 8 deletions pkgs/applications/video/vdr/xineliboutput/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
{ stdenv, fetchurl, lib, vdr
, libav, libcap, libvdpau
, xineLib, libjpeg, libextractor, mesa, libGLU
, xineLib, libjpeg, libextractor, libglvnd, libGLU
, libX11, libXext, libXrender, libXrandr
, makeWrapper
}: let
name = "vdr-xineliboutput-2.1.0";

makeXinePluginPath = l: lib.concatStringsSep ":" (map (p: "${p}/lib/xine/plugins") l);

self = stdenv.mkDerivation {
inherit name;
self = stdenv.mkDerivation rec {
pname = "vdr-xineliboutput";
version = "2.2.0";

src = fetchurl {
url = "mirror://sourceforge/project/xineliboutput/xineliboutput/${name}/${name}.tgz";
sha256 = "1phrxpaz8li7z0qy241spawalhcmwkv5hh3gdijbv4h7mm899yba";
url = "mirror://sourceforge/project/xineliboutput/xineliboutput/${pname}-${version}/${pname}-${version}.tgz";
sha256 = "0a24hs5nr7ncf51c5agyfn1xrvb4p70y3i0s6dlyyd9bwbfjldns";
};

postPatch = ''
# pkg-config is called with opengl, which do not contain needed glx symbols
substituteInPlace configure \
--replace "X11 opengl" "X11 gl"
'';

# configure don't accept argument --prefix
dontAddPrefix = true;

@@ -40,13 +45,13 @@
libcap
libextractor
libjpeg
libglvnd
libGLU
libvdpau
libXext
libXrandr
libXrender
libX11
mesa
vdr
xineLib
];
6 changes: 3 additions & 3 deletions pkgs/desktops/pantheon/apps/elementary-music/default.nix
Original file line number Diff line number Diff line change
@@ -29,15 +29,15 @@

stdenv.mkDerivation rec {
pname = "elementary-music";
version = "5.0.4";
version = "5.0.5";

repoName = "music";

src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
rev = version;
sha256 = "02qjsf9xnfh043xbls9mll2r1wcdvclw60x8wysv12rhbm90gwvp";
sha256 = "0cb0mwsp5w2bmjq8ap9mi0jvaqr9fgq00gfrkj0mzb5x5c26hrnw";
};

passthru = {
@@ -91,7 +91,7 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
description = "Music player and library designed for elementary OS";
homepage = https://github.com/elementary/music;
homepage = "https://github.com/elementary/music";
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
38 changes: 29 additions & 9 deletions pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ wrapGAppsHook
, glib
, lib
, symlinkJoin
, stdenv
, xorg
, switchboard
, switchboardPlugs
, plugs
@@ -14,26 +15,45 @@ let
if plugs == null then switchboardPlugs
else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
in
symlinkJoin {
stdenv.mkDerivation rec {
name = "${switchboard.name}-with-plugs";

src = null;

paths = [
switchboard
] ++ selectedPlugs;

buildInputs = [
wrapGAppsHook
passAsFile = [ "paths" ];

nativeBuildInputs = [
glib
] ++ (lib.forEach selectedPlugs (x: x.buildInputs))
wrapGAppsHook
];

buildInputs = lib.forEach selectedPlugs (x: x.buildInputs)
++ selectedPlugs;

postBuild = ''
make_glib_find_gsettings_schemas
dontUnpack = true;
dontConfigure = true;
dontBuild = true;

gappsWrapperArgs+=(--set SWITCHBOARD_PLUGS_PATH "$out/lib/switchboard")
preferLocalBuild = true;
allowSubstitutes = false;

wrapGAppsHook
installPhase = ''
mkdir -p $out
for i in $(cat $pathsPath); do
${xorg.lndir}/bin/lndir -silent $i $out
done
'';

preFixup = ''
gappsWrapperArgs+=(
--set SWITCHBOARD_PLUGS_PATH "$out/lib/switchboard"
)
'';

inherit (switchboard) meta;
}

35 changes: 25 additions & 10 deletions pkgs/desktops/pantheon/desktop/wingpanel/wrapper.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ lib
, wrapGAppsHook
, glib
, symlinkJoin
, stdenv
, xorg
, wingpanel
, wingpanelIndicators
, switchboard-with-plugs
@@ -15,30 +16,44 @@ let
if indicators == null then wingpanelIndicators
else indicators ++ (lib.optionals useDefaultIndicators wingpanelIndicators);
in
symlinkJoin {
stdenv.mkDerivation rec {
name = "${wingpanel.name}-with-indicators";

src = null;

paths = [
wingpanel
] ++ selectedIndicators;

buildInputs = [
passAsFile = [ "paths" ];

nativeBuildInputs = [
glib
wrapGAppsHook
] ++ (lib.forEach selectedIndicators (x: x.buildInputs))
];

buildInputs = lib.forEach selectedIndicators (x: x.buildInputs)
++ selectedIndicators;

# We have to set SWITCHBOARD_PLUGS_PATH because wingpanel-applications-menu
# has a plugin to search switchboard settings
postBuild = ''
make_glib_find_gsettings_schemas
dontUnpack = true;
dontConfigure = true;
dontBuild = true;

preferLocalBuild = true;
allowSubstitutes = false;

installPhase = ''
mkdir -p $out
for i in $(cat $pathsPath); do
${xorg.lndir}/bin/lndir -silent $i $out
done
'';

preFixup = ''
gappsWrapperArgs+=(
--set WINGPANEL_INDICATORS_PATH "$out/lib/wingpanel"
--set SWITCHBOARD_PLUGS_PATH "${switchboard-with-plugs}/lib/switchboard"
)
wrapGAppsHook
'';

inherit (wingpanel) meta;
Loading