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: c9057b3751a6
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: e0e9b9fb0777
Choose a head ref

Commits on Jun 3, 2020

  1. Copy the full SHA
    d3009e1 View commit details
  2. Copy the full SHA
    6842a7e View commit details
  3. Copy the full SHA
    7f64427 View commit details
  4. lxappearance: default to Gtk3

    - make Gtk3 the default
    - remove lxappearance-gtk3
    - add lxappearance-gtk2
    romildo committed Jun 3, 2020
    Copy the full SHA
    6e3b3bf View commit details

Commits on Jun 4, 2020

  1. lxappearance: format with nixpkgs-fmt

    Also:
    - use pkg-config instead of the alias pkgconfig
    - add romildo as maintainer
    romildo committed Jun 4, 2020
    Copy the full SHA
    9644b56 View commit details
  2. Bump minver.nix to 2.2

    Note: NixOS 19.03 had Nix 2.2 and 19.09 had 2.3.
    edolstra committed Jun 4, 2020
    Copy the full SHA
    8f9e4be View commit details
  3. Don't enable nix-bash-completions when using Nix 2.4

    2.4 has its own completion script which collides with
    nix-bash-completions.
    edolstra committed Jun 4, 2020
    Copy the full SHA
    bbfc473 View commit details
  4. nixos/buildbot-master: fix typo in services.buildbot-master.bpPort

    It's pbPort, and it's also a connection string, meaning
    listen-on-localhost is also possible. Provide an alias for the old
    option name, so old configs still work.
    flokli committed Jun 4, 2020
    Copy the full SHA
    1fd972b View commit details

Commits on Jun 5, 2020

  1. cgmanager: remove

    fixes #30023
    Mic92 committed Jun 5, 2020
    Copy the full SHA
    073d2fc View commit details
  2. Copy the full SHA
    f039657 View commit details
  3. Merge pull request #89510 from flokli/buildbot-pbPort

    nixos/buildbot-master: fix typo in services.buildbot-master.bpPort
    flokli authored Jun 5, 2020
    Copy the full SHA
    c055fc0 View commit details
  4. pythonmagick -> python2.pkgs.pythonmagick

    Python bindings should be in python-packages.nix.
    FRidh committed Jun 5, 2020
    Copy the full SHA
    a4ed97d View commit details
  5. Merge pull request #89523 from Mic92/rust-docs

    buildRustPackage: add documentation on how to create cargo.lock patches
    Mic92 authored Jun 5, 2020
    Copy the full SHA
    685f06c View commit details
  6. Copy the full SHA
    abb2f60 View commit details
  7. Merge pull request #89476 from edolstra/bump-minver

    Bump minver.nix to 2.2
    edolstra authored Jun 5, 2020
    Copy the full SHA
    9679531 View commit details
  8. Merge pull request #89479 from edolstra/nix-2.4-completion

    Don't enable nix-bash-completions when using Nix 2.4
    edolstra authored Jun 5, 2020
    Copy the full SHA
    b00463d View commit details
  9. Copy the full SHA
    0f2d9bb View commit details
  10. xdg-desktop-portal-wlr: init at 0.1.0 (#83485)

    * xdg-desktop-portal-wlr: init at 2020-03-13
    
    * xdg-desktop-portal-wlr: 2020-03-13 -> 0.1.0
    
    Co-authored-by: zimbatm <zimbatm@zimbatm.com>
    minijackson and zimbatm authored Jun 5, 2020
    Copy the full SHA
    f16f0c2 View commit details
  11. Merge pull request #89537 from WilliButz/update/atlassian-confluence/…

    …7.5.1
    
    atlassian-confluence: 7.5.0 -> 7.5.1
    lheckemann authored Jun 5, 2020
    Copy the full SHA
    dcb64ea View commit details
  12. Copy the full SHA
    8db1c35 View commit details
  13. Merge pull request #89420 from romildo/fix.lxappearance

    lxappearance: default to Gtk3
    romildo authored Jun 5, 2020
    Copy the full SHA
    e0e9b9f View commit details
18 changes: 18 additions & 0 deletions doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
@@ -75,6 +75,24 @@ pkgs.rustPlatform.buildRustPackage {
}
```

### Building a crate with an absent or out-of-date Cargo.lock file

`buildRustPackage` needs a `Cargo.lock` file to get all dependencies in the
source code in a reproducible way. If it is missing or out-of-date one can use
the `cargoPatches` attribute to update or add it.

```
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
(...)
cargoPatches = [
# a patch file to add/update Cargo.lock in the source code
./add-Cargo.lock.patch
];
}
```

## Compiling Rust crates using Nix instead of Cargo

### Simple operation
2 changes: 1 addition & 1 deletion lib/minver.nix
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Expose the minimum required version for evaluating Nixpkgs
"2.0"
"2.2"
4 changes: 1 addition & 3 deletions nixos/modules/config/system-path.nix
Original file line number Diff line number Diff line change
@@ -8,8 +8,7 @@ with lib;
let

requiredPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
[ config.nix.package
pkgs.acl
[ pkgs.acl
pkgs.attr
pkgs.bashInteractive # bash with ncurses support
pkgs.bzip2
@@ -33,7 +32,6 @@ let
pkgs.nano
pkgs.ncurses
pkgs.netcat
pkgs.nix-info
config.programs.ssh.package
pkgs.perl
pkgs.procps
1 change: 0 additions & 1 deletion nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -806,7 +806,6 @@
./services/security/torsocks.nix
./services/security/usbguard.nix
./services/security/vault.nix
./services/system/cgmanager.nix
./services/system/cloud-init.nix
./services/system/dbus.nix
./services/system/earlyoom.nix
3 changes: 0 additions & 3 deletions nixos/modules/programs/bash/bash.nix
Original file line number Diff line number Diff line change
@@ -238,9 +238,6 @@ in
"/share/bash-completion"
];

environment.systemPackages = optional cfg.enableCompletion
pkgs.nix-bash-completions;

environment.shells =
[ "/run/current-system/sw/bin/bash"
"/run/current-system/sw/bin/sh"
1 change: 1 addition & 0 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ with lib;
(mkRemovedOptionModule [ "environment" "blcr" "enable" ] "The BLCR module has been removed")
(mkRemovedOptionModule [ "services" "beegfsEnable" ] "The BeeGFS module has been removed")
(mkRemovedOptionModule [ "services" "beegfs" ] "The BeeGFS module has been removed")
(mkRemovedOptionModule ["services" "cgmanager" "enable"] "cgmanager was deprecated by lxc and therefore removed from nixpkgs.")
(mkRemovedOptionModule [ "services" "osquery" ] "The osquery module has been removed")
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
22 changes: 18 additions & 4 deletions nixos/modules/services/continuous-integration/buildbot/master.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ let
factory = util.BuildFactory()
c = BuildmasterConfig = dict(
workers = [${concatStringsSep "," cfg.workers}],
protocols = { 'pb': {'port': ${toString cfg.bpPort} } },
protocols = { 'pb': {'port': ${toString cfg.pbPort} } },
title = '${escapeStr cfg.title}',
titleURL = '${escapeStr cfg.titleUrl}',
buildbotURL = '${escapeStr cfg.buildbotUrl}',
@@ -155,10 +155,20 @@ in {
description = "Specifies the Buildbot directory.";
};

bpPort = mkOption {
pbPort = mkOption {
default = 9989;
type = types.int;
description = "Port where the master will listen to Buildbot Worker.";
type = types.either types.str types.int;
example = "'tcp:9990:interface=127.0.0.1'";
description = ''
The buildmaster will listen on a TCP port of your choosing
for connections from workers.
It can also use this port for connections from remote Change Sources,
status clients, and debug tools.
This port should be visible to the outside world, and you’ll need to tell
your worker admins about your choice.
If put in (single) quotes, this can also be used as a connection string,
as defined in the <link xlink:href="https://twistedmatrix.com/documents/current/core/howto/endpoints.html">ConnectionStrings guide</link>.
'';
};

listenAddress = mkOption {
@@ -264,5 +274,9 @@ in {
};
};

imports = [
(mkRenamedOptionModule [ "services" "buildbot-master" "bpPort" ] [ "services" "buildbot-master" "pbPort" ])
];

meta.maintainers = with lib.maintainers; [ nand0p mic92 ];
}
6 changes: 6 additions & 0 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
@@ -442,6 +442,12 @@ in
nix.binaryCachePublicKeys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
nix.binaryCaches = [ "https://cache.nixos.org/" ];

environment.systemPackages =
[ nix
pkgs.nix-info
]
++ optional (config.programs.bash.enableCompletion && !versionAtLeast nixVersion "2.4pre") pkgs.nix-bash-completions;

environment.etc."nix/nix.conf".source = nixConf;

environment.etc."nix/registry.json".text = builtins.toJSON {
26 changes: 0 additions & 26 deletions nixos/modules/services/system/cgmanager.nix

This file was deleted.

6 changes: 3 additions & 3 deletions pkgs/applications/misc/keepass-plugins/keeagent/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, buildEnv, fetchzip, mono }:

let
version = "0.10.1";
version = "0.12.0";
drv = stdenv.mkDerivation {
pname = "keeagent";
inherit version;

src = fetchzip {
url = "https://lechnology.com/wp-content/uploads/2018/04/KeeAgent_v0.10.1.zip";
sha256 = "0j7az6l9wcr8z66mfplkxwydd4bgz2p2vd69xncf0nxlfb0lshh7";
url = "https://lechnology.com/wp-content/uploads/2020/05/KeeAgent_v0.12.0.zip";
sha256 = "0fcfbj3yikiv3dmp69236h9r3c416amdq849kn131w1129gb68xd";
stripRoot = false;
};

18 changes: 0 additions & 18 deletions pkgs/applications/misc/keepass/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -56,24 +56,6 @@ diff --git a/KeePass/Util/ClipboardUtil.Unix.cs b/KeePass/Util/ClipboardUtil.Uni
index ab49ee2..7f6c50f 100644
--- a/KeePass/Util/ClipboardUtil.Unix.cs
+++ b/KeePass/Util/ClipboardUtil.Unix.cs
@@ -42,7 +42,7 @@ namespace KeePass.Util
// string strGtk = GtkGetString();
// if(strGtk != null) return strGtk;

- return (NativeLib.RunConsoleApp("pbpaste", "-pboard general") ??
+ return (NativeLib.RunConsoleApp("@pbpaste@", "-pboard general") ??
string.Empty);
}

@@ -50,7 +50,7 @@ namespace KeePass.Util
{
// if(GtkSetString(str)) return;

- NativeLib.RunConsoleApp("pbcopy", "-pboard general", str);
+ NativeLib.RunConsoleApp("@pbcopy@", "-pboard general", str);
}

private static string GetStringU()
@@ -62,7 +62,7 @@ namespace KeePass.Util
// "-out -selection clipboard");
// if(str != null) return str;
2 changes: 1 addition & 1 deletion pkgs/applications/misc/keepass/keepass-plugins-load.patch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
+ m_pluginManager.LoadAllPlugins("$PATH$/lib/dotnet/keepass", SearchOption.TopDirectoryOnly, new string[] {});
+ m_pluginManager.LoadAllPlugins("$PATH$/lib/dotnet/keepass", System.IO.SearchOption.TopDirectoryOnly, new string[] {});
2 changes: 1 addition & 1 deletion pkgs/applications/misc/keepass/keepass-plugins.patch
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ diff --git a/KeePass/Forms/MainForm.cs b/KeePass/Forms/MainForm.cs
index 347eaf5..b92e1e2 100644
--- a/KeePass/Forms/MainForm.cs
+++ b/KeePass/Forms/MainForm.cs
@@ -440,7 +440,7 @@ namespace KeePass.Forms
@@ -440,7 +440,$OUTPUT_LC$ @@ namespace KeePass.Forms
ToolStripItemCollection tsicT = m_ctxTray.Items;
ToolStripItem tsiPrevT = m_ctxTrayOptions;

1 change: 1 addition & 0 deletions pkgs/build-support/rust/default.nix
Original file line number Diff line number Diff line change
@@ -130,6 +130,7 @@ stdenv.mkDerivation (args // {
# give a friendlier error msg.
if ! [ -e $srcLockfile ]; then
echo "ERROR: Missing Cargo.lock from src. Expected to find it at: $srcLockfile"
echo "Hint: You can use the cargoPatches attribute to add a Cargo.lock manually to the build."
exit 1
fi
36 changes: 26 additions & 10 deletions pkgs/desktops/lxde/core/lxappearance/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
{ stdenv, fetchurl, intltool, pkgconfig, libX11, gtk2, withGtk3 ? false, gtk3 }:
{ stdenv
, fetchurl
, intltool
, pkg-config
, libX11
, gtk2
, gtk3
, withGtk3 ? true
}:

stdenv.mkDerivation rec {
name = "lxappearance-0.6.3";

src = fetchurl{
src = fetchurl {
url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz";
sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
};

nativeBuildInputs = [ pkgconfig intltool ];
nativeBuildInputs = [
pkg-config
intltool
];

buildInputs = [ libX11 (if withGtk3 then gtk3 else gtk2) ];
buildInputs = [
libX11
(if withGtk3 then gtk3 else gtk2)
];

patches = [ ./lxappearance-0.6.3-xdg.system.data.dirs.patch ];
patches = [
./lxappearance-0.6.3-xdg.system.data.dirs.patch
];

configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";

meta = {
description = "A lightweight program for configuring the theme and fonts of gtk applications";
meta = with stdenv.lib; {
description = "Lightweight program for configuring the theme and fonts of gtk applications";
homepage = "https://lxde.org/";
maintainers = [ stdenv.lib.maintainers.hinton ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ hinton romildo ];
};
}
26 changes: 26 additions & 0 deletions pkgs/development/libraries/xdg-desktop-portal-wlr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub
, meson, ninja, pkgconfig, wayland-protocols
, pipewire, wayland, elogind, systemd, libdrm }:

stdenv.mkDerivation rec {
pname = "xdg-desktop-portal-wlr";
version = "0.1.0";

src = fetchFromGitHub {
owner = "emersion";
repo = pname;
rev = "v${version}";
sha256 = "12k92h9dmn1fyn8nzxk69cyv0gnb7g9gj7a66mw5dcl5zqnl07nc";
};

nativeBuildInputs = [ meson ninja pkgconfig wayland-protocols ];
buildInputs = [ pipewire wayland elogind systemd libdrm ];

meta = with stdenv.lib; {
homepage = "https://github.com/emersion/xdg-desktop-portal-wlr";
description = "xdg-desktop-portal backend for wlroots";
maintainers = with maintainers; [ minijackson ];
platforms = platforms.linux;
license = licenses.mit;
};
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# This expression provides Python bindings to ImageMagick. Python libraries are supposed to be called via `python-packages.nix`.
{ lib
, buildPythonPackage
, fetchurl
, python
, pkg-config
, imagemagick
, autoreconfHook
, boost
, isPy3k
, pythonImportsCheckHook
}:

{ stdenv, fetchurl, python, pkgconfig, imagemagick, autoreconfHook }:

stdenv.mkDerivation rec {
buildPythonPackage rec {
pname = "pythonmagick";
version = "0.9.16";
format = "other";

src = fetchurl {
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
@@ -15,12 +24,18 @@ stdenv.mkDerivation rec {
rm configure
'';

configureFlags = [ "--with-boost=${python.pkgs.boost}" ];
configureFlags = [ "--with-boost=${boost}" ];

nativeBuildInputs = [ pkg-config autoreconfHook pythonImportsCheckHook ];
buildInputs = [ python boost imagemagick ];

pythonImportsCheck = [
"PythonMagick"
];

nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ python python.pkgs.boost imagemagick ];
disabled = isPy3k;

meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.imagemagick.org/script/api.php";
license = licenses.imagemagick;
description = "PythonMagick provides object oriented bindings for the ImageMagick Library.";
27 changes: 0 additions & 27 deletions pkgs/os-specific/linux/cgmanager/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/servers/atlassian/confluence.nix
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ assert withMysql -> (mysql_jdbc != null);

stdenvNoCC.mkDerivation rec {
pname = "atlassian-confluence";
version = "7.5.0";
version = "7.5.1";

src = fetchurl {
url = "https://product-downloads.atlassian.com/software/confluence/downloads/${pname}-${version}.tar.gz";
sha256 = "177n20cjlrnv767ql72dldmdrsky6xnn7cl52qpvahnglnp5878z";
sha256 = "0lxvff0sn1kxsm599lq72hw11qnwjn2da3mz1h8mqz0rn2adhg07";
};

buildPhase = ''
Loading