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: 49dc36c9a857
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: 448d7d648d1a
Choose a head ref

Commits on May 27, 2018

  1. busybox: 1.28.3 -> 1.28.4

    NeQuissimus committed May 27, 2018
    Copy the full SHA
    1e51906 View commit details

Commits on May 28, 2018

  1. Merge master into staging

    FRidh committed May 28, 2018
    Copy the full SHA
    dcd59a6 View commit details

Commits on May 29, 2018

  1. sqlite: do not contaminate dependent libtool-based projects with sqli…

    …te dependencies
    
    sqlite is built as a shared library, but libtool nevertheless adds -lz into the
    link commands of the dependent projects, which fail to link if they do not
    directly depend on libz.  Fix this by clearing dependency_libs in libsqlite3.la.
    orivej committed May 29, 2018
    Copy the full SHA
    c83a530 View commit details
  2. Revert "vsqlite: fix build"

    This reverts commit e89414f.
    orivej committed May 29, 2018
    Copy the full SHA
    2100519 View commit details
  3. Merge master into staging

    FRidh committed May 29, 2018
    Copy the full SHA
    85032a0 View commit details
  4. Merge pull request #41211 from orivej/sqlite

    sqlite: do not contaminate dependent libtool-based projects with sqlite dependencies
    orivej authored May 29, 2018
    Copy the full SHA
    5197a4c View commit details
  5. linux: enable support for iGVT-g VGPU

    gnidorah committed May 29, 2018
    Copy the full SHA
    c9e7b38 View commit details
  6. virt-viewer: support ALSA

    gnidorah committed May 29, 2018
    Copy the full SHA
    30dc291 View commit details
  7. phodav: init at 2.2

    gnidorah committed May 29, 2018
    Copy the full SHA
    ce0d9ee View commit details
  8. virt-viewer: folder sharing support

    gnidorah committed May 29, 2018
    Copy the full SHA
    62500ec View commit details
  9. nixos/kvmgt: init

    gnidorah committed May 29, 2018
    Copy the full SHA
    a3e239a View commit details

Commits on May 30, 2018

  1. Merge branch 'master' into staging

    * master: (30 commits)
      bitlbee: fix build
      git: 2.17.0 -> 2.17.1
      sc-controller: 0.4.2 -> 0.4.3
      zeroc-ice: fix parallel building
      pythonPackages.bsddb3: fix build after 0fd461d
      haskellPackages.hlibgit2: fix build after #28029
      gdk-pixbuf: patch library rpath references on darwin
      virtualbox: fix build after #28029
      GHCJS darwin fixes (#41120)
      neovim-remote: 1.8.6 -> 2.0.5
      messenger-for-desktop: remove (#41224)
      typora: gnome2 cleanup (#41167)
      discord: gnome2 cleanup (#41174)
      skypeforlinux: gnome2 cleanup (#41176)
      wire-desktop: gnome2 cleanup (#41155)
      hyper: gnome2 cleanup (#41170)
      drone: 0.5 -> 0.8.5 (#41200)
      racket: use proper uname, allow for unix sockets
      kytea: fix build after #28029
      yoda: fix build after #28029
      ...
    orivej committed May 30, 2018
    Copy the full SHA
    3576d47 View commit details
  2. libffi: fix check

    (cherry picked from commit 13b80d7805ef11db1a3d1511171cee378f0a692f)
    orivej committed May 30, 2018
    Copy the full SHA
    0248717 View commit details
  3. Merge master into staging

    FRidh committed May 30, 2018
    Copy the full SHA
    da34956 View commit details
  4. parallel: 20180422 -> 20180522

    pSub committed May 30, 2018
    Copy the full SHA
    c315d45 View commit details
  5. cairo: 1.15.10 -> 1.15.12

    The previous 1.15.10 (and the stable 1.14.12) have the bug
    https://bugs.freedesktop.org/show_bug.cgi?id=104325 which breaks
    perlPackages.Cairo and pythonPackages.cairocffi tests.
    orivej committed May 30, 2018
    Copy the full SHA
    ef69523 View commit details

Commits on May 31, 2018

  1. json-glib: add updateScript

    jtojnar committed May 31, 2018
    Copy the full SHA
    252a8af View commit details
  2. bison: 3.0.4 -> 3.0.5 (#41302)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/bison/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/q481pyq4xd66jis7wdcfjy3dldch0vwl-bison-3.0.5/bin/bison passed the binary check.
    - /nix/store/q481pyq4xd66jis7wdcfjy3dldch0vwl-bison-3.0.5/bin/yacc passed the binary check.
    - 2 of 2 passed binary check by having a zero exit code.
    - 0 of 2 passed binary check by having the new version present in output.
    - found 3.0.5 with grep in /nix/store/q481pyq4xd66jis7wdcfjy3dldch0vwl-bison-3.0.5
    - directory tree listing: https://gist.github.com/76c5b3a38b02115e31a48c51785d1bd3
    - du listing: https://gist.github.com/566dbfdfcc7a89fa9cd11d1ddf49935c
    r-ryantm authored and xeji committed May 31, 2018
    Copy the full SHA
    42e18cf View commit details
  3. fftwLongDouble: 3.3.7 -> 3.3.8 (#41299)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/fftw-long-double/versions.
    
    These checks were done:
    
    - built on NixOS
    
    - 0 of 0 passed binary check by having a zero exit code.
    - 0 of 0 passed binary check by having the new version present in output.
    - found 3.3.8 with grep in /nix/store/7csndk7q4h2wvv46ndgh6lm4j0ybx9zf-fftw-long-double-3.3.8
    - directory tree listing: https://gist.github.com/05084878f5535b72e17b90667821c468
    - du listing: https://gist.github.com/174653df406b155bf1a9c07da9257f54
    r-ryantm authored and xeji committed May 31, 2018
    Copy the full SHA
    5d61168 View commit details
  4. configuration-ghc-8.4.x: bump to dhall_1_14_0

    The `dhall_1_13_0` attribute doesn't exist, anymore.
    jhenahan authored May 31, 2018
    Copy the full SHA
    286f9ca View commit details

Commits on Jun 1, 2018

  1. godep: remove in favor of dep

    upstream deprecated this and recommend dep
    Mic92 committed Jun 1, 2018
    Copy the full SHA
    5feb8d3 View commit details
  2. Revert "itstool: 2.0.2 -> 2.0.4" (#41339)

    This reverts commit 48698a0
    
    It crashes and breaks the build of gnome3.gnome_desktop and others.
    
    Upstream issue: itstool/itstool#17
    jtojnar authored and orivej committed Jun 1, 2018
    Copy the full SHA
    fd9cfc4 View commit details
  3. Merge branch 'master' into staging

    * master: (153 commits)
      coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 (#41351)
      haskell.packages.ghcjs.terminfo: Bump version (#41337)
      nixos/mpd: allow services.mpd.dbFile to be null
      prometheus-snmp-exporter: 0.9.0 -> 0.11.0 (#41363)
      tdesktopPackages.preview: 1.2.24 -> 1.3.0
      signal-desktop: Refactor the package description
      rrootage: init at 0.23a
      bulletml: init at 0.0.6
      signal-desktop: Fix a possible crash when saving an attachment
      linux_rpi: More downstream device tree name fixups
      nixos/sd-image-raspberrypi: Support Raspberry Pi Zero
      U-Boot: Add ubootRaspberryPiZero variant
      U-Boot: 2018.03 -> 2018.05
      linux_rpi: 1.20171029 -> 1.20180417
      raspberrypifw: 1.20180328 -> 1.20180417
      scite: 3.7.5 -> 4.0.5 (#41345)
      neo4j: 3.3.4 -> 3.4.0 (#41338)
      bat: 0.3.0 -> 0.4.1 (#41348)
      perlPackages.Git: init at 0.42
      nodePackages_8_x.pnpm: wrap nodejs.passthru.python
      ...
    orivej committed Jun 1, 2018
    Copy the full SHA
    4b2735f View commit details
  4. Copy the full SHA
    f96c5ef View commit details
  5. p11-kit: 0.23.10 -> 0.23.11 (#41271)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/p11-kit/versions.
    
    These checks were done:
    
    - built on NixOS
    
    - 0 of 0 passed binary check by having a zero exit code.
    - 0 of 0 passed binary check by having the new version present in output.
    - found 0.23.11 with grep in /nix/store/9whclrmrld36nawkkdshhj636jlh1cdm-p11-kit-0.23.11
    - directory tree listing: https://gist.github.com/be74c2d2f6d0b1ee2fb5e2b0e30fb945
    - du listing: https://gist.github.com/470d2f00cd777773ea45ea6ea280a07a
    r-ryantm authored and xeji committed Jun 1, 2018
    Copy the full SHA
    cf152c2 View commit details
  6. lib: bitAnd, bitOr, bitXor

    volth committed Jun 1, 2018
    Copy the full SHA
    0addac3 View commit details

Commits on Jun 2, 2018

  1. Merge pull request #40242 from gnidorah/gvt

    linux: enable support for iGVT-g VGPU
    matthewbauer authored Jun 2, 2018
    Copy the full SHA
    0135f04 View commit details
  2. p11-kit: 0.23.11 -> 0.23.12

    0.23.11 breaks gnutls: p11-glue/p11-kit#159
    orivej committed Jun 2, 2018
    Copy the full SHA
    5bedf23 View commit details
  3. bison: drop non-applying patch on Darwin

    The Darwin case seems newly fixed in the tarballs now.
    Beware: the affected file is *not* in bison's git repo (gitignored),
    but it is in tarballs and is used during build (yummy!)
    vcunat committed Jun 2, 2018
    Copy the full SHA
    52fdec3 View commit details
  4. lib: test for bitAnd, bitOr, bitXor

    volth authored Jun 2, 2018
    Copy the full SHA
    078b9b4 View commit details

Commits on Jun 3, 2018

  1. multimc: 0.6.1 -> 0.6.2

    Madouura committed Jun 3, 2018
    Copy the full SHA
    c52beb1 View commit details
  2. qt: remove install_name_tool stuff

    hopefully it's not needed - the frameworks are no longer there
    matthewbauer authored Jun 3, 2018
    Copy the full SHA
    4ae5f8a View commit details
  3. Copy the full SHA
    33ff34f View commit details
  4. Copy the full SHA
    323c2a1 View commit details
  5. Copy the full SHA
    83e4f66 View commit details
  6. Merge pull request #41405 from andir/prosody-cve-2018-10847

    prosody: 0.10.1 -> 0.10.2
    andir authored Jun 3, 2018
    Copy the full SHA
    033798f View commit details
  7. Merge pull request #41334 from jhenahan/patch-3

    configuration-ghc-8.4.x: bump to dhall_1_14_0
    peti authored Jun 3, 2018
    Copy the full SHA
    da11a27 View commit details
  8. Merge pull request #41373 from volth/bitwise

    lib: bitAnd, bitOr, bitXor
    Mic92 authored Jun 3, 2018
    Copy the full SHA
    d036073 View commit details
  9. Merge pull request #41350 from Mic92/godep

    godep: remove in favor of dep
    Mic92 authored Jun 3, 2018
    Copy the full SHA
    b240ab1 View commit details
  10. Merge pull request #41400 from Chiiruno/dev/multimc

    multimc: 0.6.1 -> 0.6.2
    Mic92 authored Jun 3, 2018
    Copy the full SHA
    3189207 View commit details
  11. Merge branch 'staging'

    It's only half-rebuilt on Hydra, but it brings a security fix.
    vcunat committed Jun 3, 2018
    Copy the full SHA
    448d7d6 View commit details
Showing with 266 additions and 159 deletions.
  1. +4 −4 lib/default.nix
  2. +15 −0 lib/tests/misc.nix
  3. +43 −0 lib/trivial.nix
  4. +1 −0 nixos/modules/module-list.nix
  5. +1 −1 nixos/modules/services/audio/mpd.nix
  6. +64 −0 nixos/modules/virtualisation/kvmgt.nix
  7. +41 −0 pkgs/applications/audio/pulseaudio-ctl/default.nix
  8. +5 −2 pkgs/applications/virtualization/virt-viewer/default.nix
  9. +2 −2 pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
  10. +2 −2 pkgs/development/libraries/cairo/default.nix
  11. +2 −2 pkgs/development/libraries/fftw/default.nix
  12. +14 −7 pkgs/development/libraries/json-glib/default.nix
  13. +5 −0 pkgs/development/libraries/libffi/default.nix
  14. +3 −2 pkgs/development/libraries/p11-kit/default.nix
  15. +0 −18 pkgs/development/libraries/qt-5/modules/qtbase.nix
  16. +3 −3 pkgs/development/libraries/spice-gtk/default.nix
  17. +5 −0 pkgs/development/libraries/sqlite/default.nix
  18. +2 −2 pkgs/development/libraries/vsqlite/default.nix
  19. +0 −30 pkgs/development/tools/godep/default.nix
  20. +0 −67 pkgs/development/tools/godep/deps.nix
  21. +4 −2 pkgs/development/tools/misc/itstool/default.nix
  22. +3 −3 pkgs/development/tools/parsing/bison/3.x.nix
  23. +5 −2 pkgs/games/multimc/default.nix
  24. +2 −2 pkgs/os-specific/linux/busybox/default.nix
  25. +5 −0 pkgs/os-specific/linux/kernel/common-config.nix
  26. +2 −2 pkgs/os-specific/linux/procps-ng/default.nix
  27. +2 −2 pkgs/servers/xmpp/prosody/default.nix
  28. +2 −2 pkgs/tools/misc/parallel/default.nix
  29. +25 −0 pkgs/tools/networking/phodav/default.nix
  30. +4 −2 pkgs/top-level/all-packages.nix
8 changes: 4 additions & 4 deletions lib/default.nix
Original file line number Diff line number Diff line change
@@ -56,10 +56,10 @@ let
hasAttr head isAttrs isBool isInt isList isString length
lessThan listToAttrs pathExists readFile replaceStrings seq
stringLength sub substring tail;
inherit (trivial) id const concat or and boolToString mergeAttrs
flip mapNullable inNixShell min max importJSON warn info
nixpkgsVersion version mod compare splitByAndCompare
functionArgs setFunctionArgs isFunction;
inherit (trivial) id const concat or and bitAnd bitOr bitXor
boolToString mergeAttrs flip mapNullable inNixShell min max
importJSON warn info nixpkgsVersion version mod compare
splitByAndCompare functionArgs setFunctionArgs isFunction;

inherit (fixedPoints) fix fix' extends composeExtensions
makeExtensible makeExtensibleWithCustomName;
15 changes: 15 additions & 0 deletions lib/tests/misc.nix
Original file line number Diff line number Diff line change
@@ -45,6 +45,21 @@ runTests {
expected = true;
};

testBitAnd = {
expr = (bitAnd 3 10);
expected = 2;
};

testBitOr = {
expr = (bitOr 3 10);
expected = 11;
};

testBitXor = {
expr = (bitXor 3 10);
expected = 9;
};

# STRINGS

testConcatMapStrings = {
43 changes: 43 additions & 0 deletions lib/trivial.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
{ lib }:
let
zipIntBits = f: x: y:
let
# (intToBits 6) -> [ 0 1 1 ]
intToBits = x:
if x==0 then
[]
else
let
headbit = if (x / 2) * 2 != x then 1 else 0; # x & 1
tailbits = if x < 0 then 9223372036854775807 + ((x+1) / 2) else x / 2; # x >>> 1
in
[headbit] ++ (intToBits tailbits);

# (bitsToInt [ 0 1 1 ]) -> 6
bitsToInt = l:
if l==[] then
0
else
(builtins.head l) + (2 * (bitsToInt (builtins.tail l)));

zipListsWith' = fst: snd:
if fst==[] && snd==[] then
[]
else if fst==[] then
[(f 0 (builtins.head snd))] ++ (zipListsWith' [] (builtins.tail snd))
else if snd==[] then
[(f (builtins.head fst) 0 )] ++ (zipListsWith' (builtins.tail fst) [] )
else
[(f (builtins.head fst) (builtins.head snd))] ++ (zipListsWith' (builtins.tail fst) (builtins.tail snd));
in
assert (builtins.isInt x) && (builtins.isInt y);
bitsToInt (zipListsWith' (intToBits x) (intToBits y));
in
rec {

/* The identity function
@@ -31,6 +65,15 @@ rec {
/* boolean “and” */
and = x: y: x && y;

/* bitwise “and” */
bitAnd = builtins.bitAnd or zipIntBits (a: b: if a==1 && b==1 then 1 else 0);

/* bitwise “or” */
bitOr = builtins.bitOr or zipIntBits (a: b: if a==1 || b==1 then 1 else 0);

/* bitwise “xor” */
bitXor = builtins.bitXor or zipIntBits (a: b: if a!=b then 1 else 0);

/* Convert a boolean to a string.
Note that toString on a bool returns "1" and "".
*/
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -788,6 +788,7 @@
./virtualisation/lxd.nix
./virtualisation/amazon-options.nix
./virtualisation/hyperv-guest.nix
./virtualisation/kvmgt.nix
./virtualisation/openvswitch.nix
./virtualisation/parallels-guest.nix
./virtualisation/qemu-guest-agent.nix
2 changes: 1 addition & 1 deletion nixos/modules/services/audio/mpd.nix
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@ in {
defaultText = ''''${dataDir}/tag_cache'';
description = ''
The path to MPD's database. If set to <literal>null</literal> the
paramter is omitted from the configuration.
parameter is omitted from the configuration.
'';
};
};
64 changes: 64 additions & 0 deletions nixos/modules/virtualisation/kvmgt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{ config, lib, pkgs, ... }:

with lib;

let
cfg = config.virtualisation.kvmgt;
kernelPackages = config.boot.kernelPackages;
vgpuOptions = {
uuid = mkOption {
type = types.string;
description = "UUID of VGPU device. You can generate one with <package>libossp_uuid</package>.";
};
};
in {
options = {
virtualisation.kvmgt = {
enable = mkEnableOption ''
KVMGT (iGVT-g) VGPU support. Allows Qemu/KVM guests to share host's Intel integrated graphics card.
Currently only one graphical device can be shared
'';
# multi GPU support is under the question
device = mkOption {
type = types.string;
default = "0000:00:02.0";
description = "PCI ID of graphics card. You can figure it with <command>ls /sys/class/mdev_bus</command>.";
};
vgpus = mkOption {
default = {};
type = with types; attrsOf (submodule [ { options = vgpuOptions; } ]);
description = ''
Virtual GPUs to be used in Qemu. You can find devices via <command>ls /sys/bus/pci/devices/*/mdev_supported_types</command>
and find info about device via <command>cat /sys/bus/pci/devices/*/mdev_supported_types/i915-GVTg_V5_4/description</command>
'';
example = {
"i915-GVTg_V5_8" = {
uuid = "a297db4a-f4c2-11e6-90f6-d3b88d6c9525";
};
};
};
};
};

config = mkIf cfg.enable {
assertions = singleton {
assertion = versionAtLeast kernelPackages.kernel.version "4.16";
message = "KVMGT is not properly supported for kernels older than 4.16";
};
boot.kernelParams = [ "i915.enable_gvt=1" ];
systemd.services = mapAttrs' (name: value:
nameValuePair "kvmgt-${name}" {
description = "KVMGT VGPU ${name}";
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.runtimeShell} -c 'echo ${value.uuid} > /sys/bus/pci/devices/${cfg.device}/mdev_supported_types/${name}/create'";
ExecStop = "${pkgs.runtimeShell} -c 'echo 1 > /sys/bus/pci/devices/${cfg.device}/${value.uuid}/remove'";
};
wantedBy = [ "multi-user.target" ];
}
) cfg.vgpus;
};

meta.maintainers = with maintainers; [ gnidorah ];
}
41 changes: 41 additions & 0 deletions pkgs/applications/audio/pulseaudio-ctl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv, fetchFromGitHub, makeWrapper
, bc, dbus, gawk, gnused, libnotify, pulseaudioLight }:

let
path = stdenv.lib.makeBinPath [ bc dbus gawk gnused libnotify pulseaudioLight ];
pname = "pulseaudio-ctl";

in stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "1.66";

src = fetchFromGitHub {
owner = "graysky2";
repo = pname;
rev = "v${version}";
sha256 = "19a24w7y19551ar41q848w7r1imqkl9cpff4dpb7yry7qp1yjg0y";
};

postPatch = ''
substituteInPlace Makefile \
--replace /usr $out
substituteInPlace common/${pname}.in \
--replace '$0' ${pname}
'';

nativeBuildInputs = [ makeWrapper ];

postFixup = ''
wrapProgram $out/bin/${pname} \
--prefix PATH : ${path}
'';

meta = with stdenv.lib; {
description = "Control pulseaudio volume from the shell or mapped to keyboard shortcuts. No need for alsa-utils.";
homepage = https://bbs.archlinux.org/viewtopic.php?id=124513;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.linux;
};
}
7 changes: 5 additions & 2 deletions pkgs/applications/virtualization/virt-viewer/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl, xen
, gsettings-desktop-schemas, makeWrapper, libvirt-glib, libcap_ng, numactl
, libapparmor
, libapparmor, gst_all_1
, spiceSupport ? true
, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null
}:
@@ -30,11 +30,14 @@ stdenv.mkDerivation rec {
xen
] ++ optionals spiceSupport [
spice-gtk spice-protocol libcap gdbm
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
];

postInstall = ''
for f in "$out"/bin/*; do
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
wrapProgram "$f" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
done
'';

4 changes: 2 additions & 2 deletions pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
Original file line number Diff line number Diff line change
@@ -408,8 +408,8 @@ self: super: {
# Older versions don't compile.
base-compat = self.base-compat_0_10_1;
brick = self.brick_0_37_1;
dhall = self.dhall_1_13_0;
dhall_1_13_0 = doJailbreak super.dhall_1_13_0; # support ansi-terminal 0.8.x
dhall = self.dhall_1_14_0;
dhall_1_13_0 = doJailbreak super.dhall_1_14_0; # support ansi-terminal 0.8.x
HaTeX = self.HaTeX_3_19_0_0;
hpack = self.hpack_0_28_2;
hspec = dontCheck super.hspec_2_5_1;
4 changes: 2 additions & 2 deletions pkgs/development/libraries/cairo/default.nix
Original file line number Diff line number Diff line change
@@ -10,14 +10,14 @@
assert glSupport -> libGL != null;

let
version = "1.15.10";
version = "1.15.12";
inherit (stdenv.lib) optional optionals;
in stdenv.mkDerivation rec {
name = "cairo-${version}";

src = fetchurl {
url = "http://cairographics.org/${if stdenv.lib.mod (builtins.fromJSON (stdenv.lib.versions.minor version)) 2 == 0 then "releases" else "snapshots"}/${name}.tar.xz";
sha256 = "14l3jll98pjdlpm8f972v0spzcsf6y5nz85y2k8iybyg6ihj5jk2";
sha256 = "1jcl0mnqq6j2xip8p506g2cj54sfycm339rrd3p4g2jljhdhh8vn";
};

outputs = [ "out" "dev" "devdoc" ];
4 changes: 2 additions & 2 deletions pkgs/development/libraries/fftw/default.nix
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ with lib;
assert elem precision [ "single" "double" "long-double" "quad-precision" ];

let
version = "3.3.7";
version = "3.3.8";
withDoc = stdenv.cc.isGNU;
in

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz";
sha256 = "0wsms8narnbhfsa8chdflv2j9hzspvflblnqdn7hw8x5xdzrnq1v";
sha256 = "00z3k8fq561wq2khssqg0kallk0504dzlx989x3vvicjdqpjc4v1";
};

outputs = [ "out" "dev" "man" ]
21 changes: 14 additions & 7 deletions pkgs/development/libraries/json-glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
, gobjectIntrospection, dbus
, fixDarwinDylibNames
, gobjectIntrospection, dbus, fixDarwinDylibNames, gnome3
}:

stdenv.mkDerivation rec {
name = "json-glib-${minVer}.2";
minVer = "1.4";
let
pname = "json-glib";
version = "1.4.2";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://gnome/sources/json-glib/${minVer}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8";
};

@@ -28,9 +29,15 @@ stdenv.mkDerivation rec {

doCheck = true;

passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};

meta = with stdenv.lib; {
homepage = http://live.gnome.org/JsonGlib;
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
homepage = https://wiki.gnome.org/Projects/JsonGlib;
license = licenses.lgpl2;
maintainers = with maintainers; [ lethalman ];
platforms = with platforms; unix;
5 changes: 5 additions & 0 deletions pkgs/development/libraries/libffi/default.nix
Original file line number Diff line number Diff line change
@@ -49,6 +49,11 @@ stdenv.mkDerivation rec {
"--enable-pax_emutramp"
];

preCheck = ''
# The tests use -O0 which is not compatible with -D_FORTIFY_SOURCE.
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
'';

inherit doCheck;

dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/p11-kit/default.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@

stdenv.mkDerivation rec {
name = "p11-kit-${version}";
version = "0.23.10";
version = "0.23.12";

src = fetchFromGitHub {
owner = "p11-glue";
repo = "p11-kit";
rev = version;
sha256 = "0n0wqv028flzvnxllqv8i6x9nv705csl7ddzi0fzvppc9fp2yinp";
sha256 = "0pb3qlddzbw7dglwnrl7fs9g71vhqk7qzxnb1i4nw633qgy21ga1";
};

outputs = [ "out" "dev"];
@@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
installFlags = [ "exampledir=\${out}/etc/pkcs11" ];

doInstallCheck = false; # probably a bug in this derivation
enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = https://p11-glue.freedesktop.org/;
18 changes: 0 additions & 18 deletions pkgs/development/libraries/qt-5/modules/qtbase.nix
Original file line number Diff line number Diff line change
@@ -374,24 +374,6 @@ stdenv.mkDerivation {
''

+ (
if stdenv.isDarwin
then
''
fixDarwinDylibNames_rpath() {
local flags=()
for fn in "$@"; do
flags+=(-change "@rpath/$fn.framework/Versions/5/$fn" "$out/lib/$fn.framework/Versions/5/$fn")
done
for fn in "$@"; do
echo "$fn: fixing dylib"
install_name_tool -id "$out/lib/$fn.framework/Versions/5/$fn" "''${flags[@]}" "$out/lib/$fn.framework/Versions/5/$fn"
done
}
fixDarwinDylibNames_rpath "QtConcurrent" "QtPrintSupport" "QtCore" "QtSql" "QtDBus" "QtTest" "QtGui" "QtWidgets" "QtNetwork" "QtXml" "QtOpenGL"
''
else
# fixup .pc file (where to find 'moc' etc.)
''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
Loading