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: e52396ce2c04
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: 1a95a36dbf15
Choose a head ref
  • 18 commits
  • 14 files changed
  • 10 contributors

Commits on Feb 20, 2019

  1. openafs_1_8: Include support for Linux 4.20

    OpenAFS version 1.8.2 does not have support for Linux 4.20,
    meaning that linuxPackages_latest.openafs_1_8 would fail
    to build.
    
    This patch adds patches taken from the OpenAFS git to
    remove the references to deprecated functions. This has been
    tested on Linux 4.20 and Linux 4.14
    
    This patch must be removed when OpenAFS 1.8.3 is released
    and improved when Linux 5.0 is added to Nix
    artemist committed Feb 20, 2019
    Copy the full SHA
    71c6818 View commit details

Commits on Feb 25, 2019

  1. lua-modules/generated-packages.nix: fix 'lua' to propagate

    Otherwise 'lua' is from the argument populated by callPackage
    which means it's whatever the default is.
    
    (instead of the lua we're generating packages for!)
    dtzWill committed Feb 25, 2019
    Copy the full SHA
    2a1c7b1 View commit details

Commits on Feb 26, 2019

  1. Copy the full SHA
    87bd8ad View commit details
  2. Copy the full SHA
    e49175c View commit details
  3. glibc: fix cross builds on Darwin

    evaluate buildPackages.glibc exclusively on Linux,
    evaluating it on Darwin will lead to an unsupported platform error
    mroi authored Feb 26, 2019
    Copy the full SHA
    00a41eb View commit details
  4. Merge pull request #56396 from dtzWill/update/cdk-20190224

    cdk: 5.0-20171209 -> 5.0-20190224
    dtzWill authored Feb 26, 2019
    Copy the full SHA
    953f374 View commit details
  5. Merge pull request #56386 from dtzWill/fix/lua-propagate-the-right-lua

    lua-modules/generated-packages.nix: fix 'lua' to propagate
    dtzWill authored Feb 26, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    b9a1a2a View commit details
  6. Copy the full SHA
    03f0e46 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    b44c0b2 View commit details
  8. Merge pull request #56302 from jluttine/eth-utils-1.4.1

    pythonPackage.eth-utils: 1.2.1 -> 1.4.1 & pythonPackage.eth-typing: 1.3.0 -> 2.0.0
    worldofpeace authored Feb 26, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    37ca1a1 View commit details
  9. wlroots: 0.3 -> 0.4

    primeos committed Feb 26, 2019
    Copy the full SHA
    afe0725 View commit details
  10. sway-beta: 1.0-rc3 -> 1.0-rc4

    primeos committed Feb 26, 2019
    Copy the full SHA
    0c89c44 View commit details
  11. Merge pull request #56417 from mroi/patch-1

    glibc: fix cross builds on Darwin
    Mic92 authored Feb 26, 2019
    Copy the full SHA
    2642e15 View commit details
  12. grafana: 5.4.3 -> 6.0.0 (#56412)

    WilliButz authored and xeji committed Feb 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    52ea2f5 View commit details
  13. Copy the full SHA
    c9d5546 View commit details
  14. Verified

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

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    d53aefd View commit details
  16. Merge pull request #56080 from artemist/openafs-linux_latest

    openafs_1_8: Include support for Linux 4.20
    veprbl authored Feb 26, 2019
    Copy the full SHA
    1a95a36 View commit details
2 changes: 1 addition & 1 deletion maintainers/scripts/update-luarocks-packages
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ nixpkgs$ ${0} ${GENERATED_NIXFILE}

These packages are manually refined in lua-overrides.nix
*/
{ self, lua, stdenv, fetchurl, fetchgit, pkgs, ... } @ args:
{ self, stdenv, fetchurl, fetchgit, pkgs, ... } @ args:
self: super:
with self;
{
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ in
};
programs = mkOption {
default = getBin pkgs.openafs;
defaultText = "config.boot.kernelPackages.openafs";
defaultText = "getBin pkgs.openafs";
type = types.package;
description = "OpenAFS programs package. MUST match the kernel module package!";
};
9 changes: 4 additions & 5 deletions pkgs/applications/window-managers/sway/beta.nix
Original file line number Diff line number Diff line change
@@ -10,13 +10,13 @@
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "sway";
version = "1.0-rc3";
version = "1.0-rc4";

src = fetchFromGitHub {
owner = "swaywm";
repo = "sway";
rev = version;
sha256 = "1ixwc1bg725x68qr84s8a5i4rlzc4svc52jgdw1yl5bgr6l1k5zc";
sha256 = "1f0mvf48dvsivdd850r1gd2h90cbn62qflwiff6x2addn868bvxa";
};

postPatch = ''
@@ -36,15 +36,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

mesonFlags = [
"-Dxwayland=enabled" "-Dgdk-pixbuf=enabled"
"-Dtray=enabled"
"-Dxwayland=enabled" "-Dgdk-pixbuf=enabled" "-Dtray=enabled"
] ++ stdenv.lib.optional buildDocs "-Dman-pages=enabled";

meta = with stdenv.lib; {
description = "i3-compatible window manager for Wayland";
homepage = https://swaywm.org;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos synthetica ]; # Trying to keep it up-to-date.
maintainers = with maintainers; [ primeos synthetica ];
};
}
4 changes: 2 additions & 2 deletions pkgs/desktops/pantheon/apps/elementary-music/default.nix
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@

stdenv.mkDerivation rec {
pname = "music";
version = "5.0.2";
version = "5.0.3";

name = "elementary-${pname}-${version}";

src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "06mpikzdm01r9j7g15b7fgi4lcnp8cc0wmj17dfli5nmncxghx89";
sha256 = "0qbny4484kr7lihg54rbhfwah9k43iivk3rivfvn7i5w66vn5spl";
};

passthru = {
6 changes: 3 additions & 3 deletions pkgs/desktops/pantheon/desktop/gala/default.nix
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@

stdenv.mkDerivation rec {
pname = "gala";
version = "unstable-2018-12-16";
version = "unstable-2019-02-09"; # Is tracking https://github.com/elementary/gala/commits/stable/juno

src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = "7f1e392e03000df0bd47e7832bb3adab81f39ae5";
sha256 = "1syqq0xfyg5nbnnmy0wp5d66k1bvq9qn27lvr37abxxqig9acpc8";
rev = "1a96644c6aac405927499dacb308dea13512e919";
sha256 = "1zi7xyzhsypf52zzfwf7dwcxgd0skxbsssv1vsxgmswszg23p7i3";
};

passthru = {
4 changes: 2 additions & 2 deletions pkgs/development/libraries/cdk/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

stdenv.mkDerivation rec {
name = "cdk-${version}";
version ="5.0-20171209";
version ="5.0-20190224";

buildInputs = [
ncurses
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
"ftp://ftp.invisible-island.net/cdk/cdk-${version}.tgz"
"https://invisible-mirror.net/archives/cdk/cdk-${version}.tgz"
];
sha256 = "0jq0dx7gm7gl6lv5mhlfkxhw5362g9dxqdlpjlrag069nns8xdc8";
sha256 = "0767xqwm377ak909c589vqm0v83slsnkm2ycq7bg545xx5nycncs";
};

meta = with stdenv.lib; {
2 changes: 1 addition & 1 deletion pkgs/development/libraries/glibc/default.nix
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ callPackage ./common.nix { inherit stdenv; } {
postInstall = (if stdenv.hostPlatform == stdenv.buildPlatform then ''
echo SUPPORTED-LOCALES=C.UTF-8/UTF-8 > ../glibc-2*/localedata/SUPPORTED
make -j''${NIX_BUILD_CORES:-1} -l''${NIX_BUILD_CORES:-1} localedata/install-locales
'' else ''
'' else stdenv.lib.optionalString stdenv.buildPlatform.isLinux ''
# This is based on http://www.linuxfromscratch.org/lfs/view/development/chapter06/glibc.html
# Instead of using their patch to build a build-native localedef,
# we simply use the one from buildPackages
4 changes: 2 additions & 2 deletions pkgs/development/libraries/wlroots/default.nix
Original file line number Diff line number Diff line change
@@ -6,15 +6,15 @@

let
pname = "wlroots";
version = "0.3";
version = "0.4";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "swaywm";
repo = "wlroots";
rev = version;
sha256 = "1iz5lxpiba1lcmkz3hz56r8j6ra3535zgckazqshi4c364nx94zs";
sha256 = "1gwdwdyfnsn65bxn1yyy15f1q2gagakkl9k89zz8wv72sgniwxri";
};

# $out for the library, $bin for rootston, and $examples for the example
2 changes: 1 addition & 1 deletion pkgs/development/lua-modules/generated-packages.nix
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ nixpkgs$ maintainers/scripts/update-luarocks-packages pkgs/development/lua-modul
These packages are manually refined in lua-overrides.nix
*/
{ self, lua, stdenv, fetchurl, fetchgit, pkgs, ... } @ args:
{ self, stdenv, fetchurl, fetchgit, pkgs, ... } @ args:
self: super:
with self;
{
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/eth-typing/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@

buildPythonPackage rec {
pname = "eth-typing";
version = "1.3.0";
version = "2.0.0";

# Tests are missing from the PyPI source tarball so let's use GitHub
# https://github.com/ethereum/eth-typing/issues/8
src = fetchFromGitHub {
owner = "ethereum";
repo = pname;
rev = "v${version}";
sha256 = "0703z7vlsfa3dvgcq22f9rzmj0svyp2a8wc7h73d0aac28ydhpv9";
sha256 = "017rshrz9kzax851hdbd3924jmr06h2sx3xdq7m4dwhgz3pgqfcy";
};

# setuptools-markdown uses pypandoc which is broken at the moment
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/eth-utils/default.nix
Original file line number Diff line number Diff line change
@@ -3,15 +3,15 @@

buildPythonPackage rec {
pname = "eth-utils";
version = "1.2.1";
version = "1.4.1";

# Tests are missing from the PyPI source tarball so let's use GitHub
# https://github.com/ethereum/eth-utils/issues/130
src = fetchFromGitHub {
owner = "ethereum";
repo = pname;
rev = "v${version}";
sha256 = "0g8f5vdjh7qd8kgsqqd9qkm6m79rx3w9yp0rf9vpdsv3xfzrkh1w";
sha256 = "1bwn7b5f0nzvwiw9zs63wy3qhaxvz2fhjp4wj9djp2337d7195h4";
};

checkInputs = [ pytest hypothesis ];
8 changes: 5 additions & 3 deletions pkgs/servers/monitoring/grafana/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{ lib, buildGoPackage, fetchurl, fetchFromGitHub, phantomjs2 }:

buildGoPackage rec {
version = "5.4.3";
version = "6.0.0";
name = "grafana-${version}";
goPackagePath = "github.com/grafana/grafana";

excludedPackages = [ "release_publisher" ];

src = fetchFromGitHub {
rev = "v${version}";
owner = "grafana";
repo = "grafana";
sha256 = "11fwb80a9qqlzmg11vw4llfa0mz80jkljg0gmp0sbv6c9jspqncv";
sha256 = "1dacji3b8iqfx92cb6psrhvg2hym8xl1lzfn7yvyss4vjj7pmbbc";
};

srcStatic = fetchurl {
url = "https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-${version}.linux-amd64.tar.gz";
sha256 = "141msgrxdn4nmwp6jhh3zg5zcbj82pxdr7ysc5v28rh9paj79yyd";
sha256 = "02c7klma5zl1mcis7gnbfi56i59ps7i757yyy8v9gnp5ynnb55v4";
};

postPatch = ''
62 changes: 62 additions & 0 deletions pkgs/servers/openafs/1.8/linux-4.20.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
--- a/src/afs/LINUX/osi_machdep.h
+++ b/src/afs/LINUX/osi_machdep.h
@@ -75,7 +75,14 @@
#if defined(HAVE_LINUX_CRED_H)
#include "h/cred.h"
#endif
-#if defined(HAVE_LINUX_CURRENT_KERNEL_TIME)
+
+#if defined(HAVE_LINUX_KTIME_GET_COARSE_REAL_TS64)
+static inline time_t osi_Time(void) {
+ struct timespec64 xtime;
+ ktime_get_coarse_real_ts64(&xtime);
+ return xtime.tv_sec;
+}
+#elif defined(HAVE_LINUX_CURRENT_KERNEL_TIME)
static inline time_t osi_Time(void) {
struct timespec xtime;
xtime = current_kernel_time();
--- a/src/cf/linux-kernel-func.m4
+++ b/src/cf/linux-kernel-func.m4
@@ -72,6 +72,10 @@ AC_CHECK_LINUX_FUNC([iter_file_splice_write],
AC_CHECK_LINUX_FUNC([kernel_setsockopt],
[#include <linux/net.h>],
[kernel_setsockopt(NULL, 0, 0, NULL, 0);])
+AC_CHECK_LINUX_FUNC([ktime_get_coarse_real_ts64],
+ [#include <linux/time.h>],
+ [struct timespec64 *s;
+ ktime_get_coarse_real_ts64(s);])
AC_CHECK_LINUX_FUNC([locks_lock_file_wait],
[#include <linux/fs.h>],
[locks_lock_file_wait(NULL, NULL);])
--- a/src/afs/LINUX/osi_misc.c
+++ b/src/afs/LINUX/osi_misc.c
@@ -28,18 +28,6 @@
int afs_osicred_initialized = 0;
afs_ucred_t afs_osi_cred;

-void
-afs_osi_SetTime(osi_timeval_t * tvp)
-{
- struct timespec tv;
- tv.tv_sec = tvp->tv_sec;
- tv.tv_nsec = tvp->tv_usec * NSEC_PER_USEC;
-
- AFS_STATCNT(osi_SetTime);
-
- do_settimeofday(&tv);
-}
-
void
osi_linux_mask(void)
{
--- a/src/afs/LINUX/osi_prototypes.h
+++ b/src/afs/LINUX/osi_prototypes.h
@@ -45,7 +45,6 @@ extern void osi_ioctl_init(void);
extern void osi_ioctl_clean(void);

/* osi_misc.c */
-extern void afs_osi_SetTime(osi_timeval_t * tvp);
extern int osi_lookupname_internal(char *aname, int followlink,
struct vfsmount **mnt, struct dentry **dpp);
extern int osi_lookupname(char *aname, uio_seg_t seg, int followlink,
2 changes: 2 additions & 0 deletions pkgs/servers/openafs/1.8/module.nix
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ in stdenv.mkDerivation rec {
name = "openafs-${version}-${kernel.modDirVersion}";
inherit version src;

patches = [ ./linux-4.20.patch ];

nativeBuildInputs = [ autoconf automake flex libtool_2 perl which yacc ]
++ kernel.moduleBuildDependencies;