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: def9d0980684
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 08884d6a0f97
Choose a head ref

Commits on Sep 21, 2019

  1. orangefs: init at 2.9.7

    markuskowa committed Sep 21, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    markuskowa Markus Kowalewski
    Copy the full SHA
    2906718 View commit details

Commits on Sep 25, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    markuskowa Markus Kowalewski
    Copy the full SHA
    8b4ce06 View commit details
  2. nixos/orangefs: add test

    markuskowa committed Sep 25, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    markuskowa Markus Kowalewski
    Copy the full SHA
    7ced973 View commit details

Commits on Sep 29, 2019

  1. Copy the full SHA
    576515b View commit details

Commits on Oct 23, 2019

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    773fc55 View commit details

Commits on Oct 26, 2019

  1. enlightenment.efl: 1.22.5 -> 1.23.1

    - Update to version 1.23.1
    - Switch to meson build system
    - Add new dependencies: avahi, ibus, check
    romildo committed Oct 26, 2019
    Copy the full SHA
    dfb2638 View commit details
  2. Copy the full SHA
    51cf860 View commit details
  3. enlightenment.{enlightenment,ephoto,rage,terminology}: use default pk…

    …gconfig
    
    With efl-1.23.1 built with meson the native pkgconfig is not needed
    anymore, and building fails with it.
    romildo committed Oct 26, 2019
    Copy the full SHA
    ac93f9b View commit details
  4. enlightenment.{econnman,efl,terminology}, pythonPackages.python-efl: …

    …add romildo as maintainer
    romildo committed Oct 26, 2019
    Copy the full SHA
    b63e0a5 View commit details
  5. cypress 3.4.1 -> 3.5.0

    gomain committed Oct 26, 2019
    Copy the full SHA
    cb25b6c View commit details
  6. iosevka: 2.3.0 -> 2.3.2

    This commit include:
    - update iosevka version
    - fix extraParameters, was not able to inject all needed settings
    - format file
    - update package.json
    babariviere committed Oct 26, 2019

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    a9e88bb View commit details

Commits on Oct 27, 2019

  1. elogind: init at 239.5

    nh2 committed Oct 27, 2019
    Copy the full SHA
    3f4bd0e View commit details

Commits on Oct 28, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    79ccc48 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    4787446 View commit details
  3. enlightenment.efl: remove dependence on xineLib

    EFL supports four video back-ends: gstreamer, gstreamer1, libvlc, and
    xine. After asking in the IRC channel, the author (raster) recommended
    enabling gstreamer1 and disabling the others.
    romildo committed Oct 28, 2019
    Copy the full SHA
    f38c52a View commit details
  4. ec2-amis.nix: add 19.09 amis

    replace /home/deploy -> $HOME to allow running the script from outside
    the bastion.
    AmineChikhaoui committed Oct 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    AmineChikhaoui Amine Chikhaoui
    Copy the full SHA
    dc13a7f View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    3949c5b View commit details
  6. telepathy-mission-control: split outputs

    and enable parallel building
    jtojnar committed Oct 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    54fc43c View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    e4946cf View commit details
  8. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    59b2263 View commit details

Commits on Oct 29, 2019

  1. empathy: clean up slightly

    jtojnar committed Oct 29, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    f3f7384 View commit details
  2. forge: init at 1.0.4

    chessai committed Oct 29, 2019
    Copy the full SHA
    5ac9eed View commit details
  3. libck: init at 0.7.0

    chessai committed Oct 29, 2019
    Copy the full SHA
    3519a16 View commit details
  4. Verified

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

Commits on Oct 30, 2019

  1. nixos/geoclue: minor cleanups

     - spawn the geoclue-agent directly instead of running it via bash
     - document why we cannot use DynamicUser = true
     - have systemd create the home directory instead of using an explicit
       tmpfiles.d fragment
    peterhoeg committed Oct 30, 2019
    Copy the full SHA
    d7ebe00 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    7efa4c2 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    prusnak Pavol Rusnak
    Copy the full SHA
    d124858 View commit details
  4. twitter-color-emoji: use noto-fonts-emoji’s src

    Continues #72272
    worldofpeace authored and jtojnar committed Oct 30, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    5cef7b4 View commit details
  5. radare2: 3.9.0 -> 4.0.0

    Mic92 committed Oct 30, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Mic92 Jörg Thalheim
    Copy the full SHA
    fce2426 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    5f82697 View commit details
  7. firestarter: 1.7.3 -> 1.7.4

    astro committed Oct 30, 2019
    Copy the full SHA
    0757b20 View commit details
  8. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    688bf9d View commit details

Commits on Oct 31, 2019

  1. scfbuild: switch to Python 3

    Needed to drop phases @#$% to be able to use this at all.
    
    Fixes emojione and twemoji-color-font
    jtojnar committed Oct 31, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    fc1a728 View commit details
  2. rPackages.ModelMetrics: fix darwin build

    This fixes the error:
    
    	auc_.cpp:2:10: fatal error: 'omp.h' file not found
    	#include <omp.h>
    nkpart committed Oct 31, 2019
    Copy the full SHA
    f21ac0e View commit details
  3. Copy the full SHA
    e64f741 View commit details
  4. maestral: 0.4.0 -> 0.4.2

    peterhoeg authored and Jon committed Oct 31, 2019
    Copy the full SHA
    b085792 View commit details
  5. Copy the full SHA
    e888c42 View commit details
  6. procs: 0.8.11 -> 0.8.13

    marsam authored and Jon committed Oct 31, 2019
    Copy the full SHA
    b861611 View commit details
  7. cawbird: 1.0.2 -> 1.0.3.1

    schmittlauch authored and Jon committed Oct 31, 2019
    Copy the full SHA
    01c7499 View commit details
  8. vimPlugins: Update

    justinlovinger authored and Jon committed Oct 31, 2019
    Copy the full SHA
    565cca3 View commit details
  9. Copy the full SHA
    274bf0a View commit details
  10. codeowners: add jonringer as vimplugin and vscode ext owner

    Jonathan Ringer committed Oct 31, 2019
    1

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jonringer Jonathan Ringer
    Copy the full SHA
    4c810e7 View commit details
  11. Merge pull request #72350 from peterhoeg/f/checks

    check-nwc-health: fix source URL
    peterhoeg authored Oct 31, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    015d320 View commit details
  12. python3.pkgs.cherrypy: 18.1.2 -> 18.3.0 and fix tests

    ajs124 authored and Jon committed Oct 31, 2019
    Copy the full SHA
    03ec5e7 View commit details
  13. Copy the full SHA
    10bccd2 View commit details
  14. maintainers: add rakesh4g

    Rakesh4G authored and Jon committed Oct 31, 2019
    Copy the full SHA
    b5401f0 View commit details
  15. pythonPackages.opentracing: init at 2.2.0

    Rakesh4G authored and Jon committed Oct 31, 2019
    Copy the full SHA
    e5236a1 View commit details
  16. Copy the full SHA
    a17f727 View commit details
  17. pythonPackages.labelbox: init at 2.1

    Rakesh4G authored and Jon committed Oct 31, 2019
    Copy the full SHA
    6b46338 View commit details
  18. stress-ng: 0.10.05 -> 0.10.08 (#72333)

    + fixes #72292
    c0bw3b authored Oct 31, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cbc94a0 View commit details
Showing with 5,593 additions and 5,478 deletions.
  1. +6 −0 .github/CODEOWNERS
  2. +21 −20 doc/contributing/submitting-changes.xml
  3. +6 −0 maintainers/maintainer-list.nix
  4. +1 −1 nixos/maintainers/scripts/ec2/create-amis.sh
  5. +2 −0 nixos/modules/module-list.nix
  6. +25 −16 nixos/modules/services/desktops/geoclue2.nix
  7. +1 −14 nixos/modules/services/hardware/trezord.nix
  8. +97 −0 nixos/modules/services/network-filesystems/orangefs/client.nix
  9. +225 −0 nixos/modules/services/network-filesystems/orangefs/server.nix
  10. +17 −1 nixos/modules/virtualisation/ec2-amis.nix
  11. +1 −0 nixos/tests/all-tests.nix
  12. +88 −0 nixos/tests/orangefs.nix
  13. +71 −0 pkgs/applications/accessibility/contrast/default.nix
  14. +3 −3 pkgs/applications/blockchains/jormungandr/default.nix
  15. +82 −0 pkgs/applications/misc/elogind/default.nix
  16. +4 −4 pkgs/applications/misc/firestarter/default.nix
  17. +9 −11 pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
  18. +2 −2 pkgs/applications/networking/browsers/vivaldi/default.nix
  19. +3 −3 pkgs/applications/networking/cawbird/default.nix
  20. +1 −1 pkgs/applications/networking/dropbox/default.nix
  21. +29 −7 pkgs/applications/networking/instant-messengers/telepathy/mission-control/default.nix
  22. +2 −2 pkgs/applications/networking/maestral/default.nix
  23. +7 −2 pkgs/applications/radio/uhd/default.nix
  24. +9 −7 pkgs/applications/radio/welle-io/default.nix
  25. +25 −19 pkgs/data/fonts/iosevka/default.nix
  26. +1 −1 pkgs/data/fonts/iosevka/package.json
  27. +8 −27 pkgs/data/fonts/twitter-color-emoji/default.nix
  28. +2 −2 pkgs/desktops/enlightenment/econnman.nix
  29. +35 −33 pkgs/desktops/enlightenment/efl.nix
  30. +1 −1 pkgs/desktops/enlightenment/enlightenment.nix
  31. +1 −1 pkgs/desktops/enlightenment/ephoto.nix
  32. +1 −1 pkgs/desktops/enlightenment/rage.nix
  33. +3 −3 pkgs/desktops/enlightenment/terminology.nix
  34. +110 −27 pkgs/desktops/gnome-3/core/empathy/default.nix
  35. +150 −725 pkgs/development/compilers/elm/packages/node-packages.nix
  36. +51 −0 pkgs/development/libraries/forge/default.nix
  37. +26 −0 pkgs/development/libraries/libck/default.nix
  38. +16 −3 pkgs/development/libraries/polkit/default.nix
  39. +4,055 −4,418 pkgs/development/node-packages/node-packages-v10.nix
  40. +40 −40 pkgs/development/node-packages/node-packages-v12.nix
  41. +5 −5 pkgs/development/ocaml-modules/sawja/default.nix
  42. +1 −2 pkgs/development/python-modules/blivet/default.nix
  43. +1 −1 pkgs/development/python-modules/bpython/default.nix
  44. +7 −12 pkgs/development/python-modules/cherrypy/default.nix
  45. +31 −0 pkgs/development/python-modules/labelbox/default.nix
  46. +34 −0 pkgs/development/python-modules/opentracing/default.nix
  47. +3 −3 pkgs/development/python-modules/python-efl/default.nix
  48. +2 −1 pkgs/development/python-modules/trezor/default.nix
  49. +6 −0 pkgs/development/r-modules/default.nix
  50. +2 −2 pkgs/development/tools/analysis/brakeman/default.nix
  51. +2 −2 pkgs/development/tools/analysis/flow/default.nix
  52. +6 −6 pkgs/development/tools/analysis/radare2/default.nix
  53. +4 −4 pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
  54. +5 −3 pkgs/development/tools/misc/terracognita/default.nix
  55. +7 −3 pkgs/development/web/cypress/default.nix
  56. +20 −9 pkgs/misc/vim-plugins/generated.nix
  57. +1 −0 pkgs/misc/vim-plugins/vim-plugin-names
  58. +5 −6 pkgs/os-specific/linux/dropwatch/default.nix
  59. +33 −0 pkgs/os-specific/linux/trezor-udev-rules/default.nix
  60. +1 −1 pkgs/servers/monitoring/plugins/labs_consol_de.nix
  61. +3 −1 pkgs/servers/trezord/default.nix
  62. +3 −3 pkgs/shells/zsh/oh-my-zsh/default.nix
  63. +3 −3 pkgs/tools/admin/procs/default.nix
  64. +61 −0 pkgs/tools/filesystems/orangefs/default.nix
  65. +13 −3 pkgs/tools/misc/scfbuild/default.nix
  66. +46 −0 pkgs/tools/misc/scfbuild/python-3.patch
  67. +3 −3 pkgs/tools/package-management/cargo-audit/default.nix
  68. +14 −9 pkgs/tools/system/stress-ng/default.nix
  69. +13 −1 pkgs/top-level/all-packages.nix
  70. +21 −0 pkgs/top-level/python-packages.nix
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -157,6 +157,12 @@
/pkgs/applications/editors/emacs @adisbladis
/pkgs/top-level/emacs-packages.nix @adisbladis

# VimPlugins
/pkgs/misc/vim-plugins @jonringer

# VsCode Extensions
/pkgs/misc/vscode-extensions @jonringer

# Prometheus exporter modules and tests
/nixos/modules/services/monitoring/prometheus/exporters.nix @WilliButz
/nixos/modules/services/monitoring/prometheus/exporters.xml @WilliButz
41 changes: 21 additions & 20 deletions doc/contributing/submitting-changes.xml
Original file line number Diff line number Diff line change
@@ -375,31 +375,32 @@ Additional information.

<section xml:id="submitting-changes-master-branch">
<title>Master branch</title>

<itemizedlist>
<listitem>
<para>
It should only see non-breaking commits that do not cause mass rebuilds.
</para>
</listitem>
</itemizedlist>
<para>
The <literal>master</literal> branch is the main development branch.
It should only see non-breaking commits that do not cause mass rebuilds.
</para>
</section>

<section xml:id="submitting-changes-staging-branch">
<title>Staging branch</title>
<para>
The <literal>staging</literal> branch is a development branch where mass-rebuilds go.
It should only see non-breaking mass-rebuild commits.
That means it is not to be used for testing, and changes must have been well tested already.
If the branch is already in a broken state, please refrain from adding extra new breakages.
</para>
</section>

<itemizedlist>
<listitem>
<para>
It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. <link xlink:href="https://web.archive.org/web/20160528180406/http://comments.gmane.org/gmane.linux.distributions.nixos/13447">Read policy here</link>.
</para>
</listitem>
<listitem>
<para>
If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. <link xlink:href="http://hydra.nixos.org/jobset/nixpkgs/staging#tabs-evaluations">Keep an eye on the staging evaluations here</link>. If any fixes for staging happen to be already in master, then master can be merged into staging.
</para>
</listitem>
</itemizedlist>
<section xml:id="submitting-changes-staging-next-branch">
<title>Staging-next branch</title>
<para>
The <literal>staging-next</literal> branch is for stabilizing mass-rebuilds submitted to the <literal>staging</literal> branch prior to merging them into <literal>master</literal>.
Mass-rebuilds should go via the <literal>staging</literal> branch.
It should only see non-breaking commits that are fixing issues blocking it from being merged into the <literal>master </literal> branch.
</para>
<para>
If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days and then merge into master.
</para>
</section>

<section xml:id="submitting-changes-stable-release-branches">
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -7403,4 +7403,10 @@
githubId = 51886259;
name = "Zokre Zyl";
};
rakesh4g = {
email = "rakeshgupta4u@gmail.com";
github = "rakesh4g";
githubId = 50867187;
name = "Rakesh Gupta";
};
}
2 changes: 1 addition & 1 deletion nixos/maintainers/scripts/ec2/create-amis.sh
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
set -euo pipefail

# configuration
state_dir=/home/deploy/amis/ec2-images
state_dir=$HOME/amis/ec2-images
home_region=eu-west-1
bucket=nixos-amis

2 changes: 2 additions & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -550,6 +550,8 @@
./services/network-filesystems/nfsd.nix
./services/network-filesystems/openafs/client.nix
./services/network-filesystems/openafs/server.nix
./services/network-filesystems/orangefs/server.nix
./services/network-filesystems/orangefs/client.nix
./services/network-filesystems/rsyncd.nix
./services/network-filesystems/samba.nix
./services/network-filesystems/tahoe.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 ];
}
15 changes: 1 addition & 14 deletions nixos/modules/services/hardware/trezord.nix
Original file line number Diff line number Diff line change
@@ -44,20 +44,7 @@ in {
### implementation

config = mkIf cfg.enable {
services.udev.packages = lib.singleton (pkgs.writeTextFile {
name = "trezord-udev-rules";
destination = "/etc/udev/rules.d/51-trezor.rules";
text = ''
# TREZOR v1 (One)
SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0660", GROUP="trezord", TAG+="uaccess"
# TREZOR v2 (T)
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c0", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c1", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="53c1", MODE="0660", GROUP="trezord", TAG+="uaccess"
'';
});
services.udev.packages = [ pkgs.trezor-udev-rules ];

systemd.services.trezord = {
description = "TREZOR Bridge";
97 changes: 97 additions & 0 deletions nixos/modules/services/network-filesystems/orangefs/client.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{ config, lib, pkgs, ...} :

with lib;

let
cfg = config.services.orangefs.client;

in {
###### interface

options = {
services.orangefs.client = {
enable = mkEnableOption "OrangeFS client daemon";

extraOptions = mkOption {
type = with types; listOf str;
default = [];
description = "Extra command line options for pvfs2-client.";
};

fileSystems = mkOption {
description = ''
The orangefs file systems to be mounted.
This option is prefered over using <option>fileSystems</option> directly since
the pvfs client service needs to be running for it to be mounted.
'';

example = [{
mountPoint = "/orangefs";
target = "tcp://server:3334/orangefs";
}];

type = with types; listOf (submodule ({ ... } : {
options = {

mountPoint = mkOption {
type = types.str;
default = "/orangefs";
description = "Mount point.";
};

options = mkOption {
type = with types; listOf str;
default = [];
description = "Mount options";
};

target = mkOption {
type = types.str;
default = null;
example = "tcp://server:3334/orangefs";
description = "Target URL";
};
};
}));
};
};
};


###### implementation

config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.orangefs ];

boot.supportedFilesystems = [ "pvfs2" ];
boot.kernelModules = [ "orangefs" ];

systemd.services.orangefs-client = {
requires = [ "network-online.target" ];
after = [ "network-online.target" ];

serviceConfig = {
Type = "simple";

ExecStart = ''
${pkgs.orangefs}/bin/pvfs2-client-core \
--logtype=syslog ${concatStringsSep " " cfg.extraOptions}
'';

TimeoutStopSec = "120";
};
};

systemd.mounts = map (fs: {
requires = [ "orangefs-client.service" ];
after = [ "orangefs-client.service" ];
bindsTo = [ "orangefs-client.service" ];
wantedBy = [ "remote-fs.target" ];
type = "pvfs2";
options = concatStringsSep "," fs.options;
what = fs.target;
where = fs.mountPoint;
}) cfg.fileSystems;
};
}

225 changes: 225 additions & 0 deletions nixos/modules/services/network-filesystems/orangefs/server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
{ config, lib, pkgs, ...} :

with lib;

let
cfg = config.services.orangefs.server;

aliases = mapAttrsToList (alias: url: alias) cfg.servers;

# Maximum handle number is 2^63
maxHandle = 9223372036854775806;

# One range of handles for each meta/data instance
handleStep = maxHandle / (length aliases) / 2;

fileSystems = mapAttrsToList (name: fs: ''
<FileSystem>
Name ${name}
ID ${toString fs.id}
RootHandle ${toString fs.rootHandle}
${fs.extraConfig}
<MetaHandleRanges>
${concatStringsSep "\n" (
imap0 (i: alias:
let
begin = i * handleStep + 3;
end = begin + handleStep - 1;
in "Range ${alias} ${toString begin}-${toString end}") aliases
)}
</MetaHandleRanges>
<DataHandleRanges>
${concatStringsSep "\n" (
imap0 (i: alias:
let
begin = i * handleStep + 3 + (length aliases) * handleStep;
end = begin + handleStep - 1;
in "Range ${alias} ${toString begin}-${toString end}") aliases
)}
</DataHandleRanges>
<StorageHints>
TroveSyncMeta ${if fs.troveSyncMeta then "yes" else "no"}
TroveSyncData ${if fs.troveSyncData then "yes" else "no"}
${fs.extraStorageHints}
</StorageHints>
</FileSystem>
'') cfg.fileSystems;

configFile = ''
<Defaults>
LogType ${cfg.logType}
DataStorageSpace ${cfg.dataStorageSpace}
MetaDataStorageSpace ${cfg.metadataStorageSpace}
BMIModules ${concatStringsSep "," cfg.BMIModules}
${cfg.extraDefaults}
</Defaults>
${cfg.extraConfig}
<Aliases>
${concatStringsSep "\n" (mapAttrsToList (alias: url: "Alias ${alias} ${url}") cfg.servers)}
</Aliases>
${concatStringsSep "\n" fileSystems}
'';

in {
###### interface

options = {
services.orangefs.server = {
enable = mkEnableOption "OrangeFS server";

logType = mkOption {
type = with types; enum [ "file" "syslog" ];
default = "syslog";
description = "Destination for log messages.";
};

dataStorageSpace = mkOption {
type = types.str;
default = null;
example = "/data/storage";
description = "Directory for data storage.";
};

metadataStorageSpace = mkOption {
type = types.str;
default = null;
example = "/data/meta";
description = "Directory for meta data storage.";
};

BMIModules = mkOption {
type = with types; listOf str;
default = [ "bmi_tcp" ];
example = [ "bmi_tcp" "bmi_ib"];
description = "List of BMI modules to load.";
};

extraDefaults = mkOption {
type = types.lines;
default = "";
description = "Extra config for <literal>&lt;Defaults&gt;</literal> section.";
};

extraConfig = mkOption {
type = types.lines;
default = "";
description = "Extra config for the global section.";
};

servers = mkOption {
type = with types; attrsOf types.str;
default = {};
example = ''
{
node1="tcp://node1:3334";
node2="tcp://node2:3334";
}
'';
description = "URLs for storage server including port. The attribute names define the server alias.";
};

fileSystems = mkOption {
description = ''
These options will create the <literal>&lt;FileSystem&gt;</literal> sections of config file.
'';
default = { orangefs = {}; };
defaultText = literalExample "{ orangefs = {}; }";
example = literalExample ''
{
fs1 = {
id = 101;
};
fs2 = {
id = 102;
};
}
'';
type = with types; attrsOf (submodule ({ ... } : {
options = {
id = mkOption {
type = types.int;
default = 1;
description = "File system ID (must be unique within configuration).";
};

rootHandle = mkOption {
type = types.int;
default = 3;
description = "File system root ID.";
};

extraConfig = mkOption {
type = types.lines;
default = "";
description = "Extra config for <literal>&lt;FileSystem&gt;</literal> section.";
};

troveSyncMeta = mkOption {
type = types.bool;
default = true;
description = "Sync meta data.";
};

troveSyncData = mkOption {
type = types.bool;
default = false;
description = "Sync data.";
};

extraStorageHints = mkOption {
type = types.lines;
default = "";
description = "Extra config for <literal>&lt;StorageHints&gt;</literal> section.";
};
};
}));
};
};
};

###### implementation

config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.orangefs ];

# orangefs daemon will run as user
users.users.orangefs.isSystemUser = true;
users.groups.orangefs = {};

# To format the file system the config file is needed.
environment.etc."orangefs/server.conf" = {
text = configFile;
user = "orangefs";
group = "orangefs";
};

systemd.services.orangefs-server = {
wantedBy = [ "multi-user.target" ];
requires = [ "network-online.target" ];
after = [ "network-online.target" ];

serviceConfig = {
# Run as "simple" in forground mode.
# This is more reliable
ExecStart = ''
${pkgs.orangefs}/bin/pvfs2-server -d \
/etc/orangefs/server.conf
'';
TimeoutStopSec = "120";
User = "orangefs";
Group = "orangefs";
};
};
};

}
18 changes: 17 additions & 1 deletion nixos/modules/virtualisation/ec2-amis.nix
Original file line number Diff line number Diff line change
@@ -291,5 +291,21 @@ let self = {
"19.03".sa-east-1.hvm-ebs = "ami-0c6a43c6e0ad1f4e2";
"19.03".ap-south-1.hvm-ebs = "ami-0303deb1b5890f878";

latest = self."19.03";
# 19.09.981.205691b7cbe
"19.09".eu-west-1.hvm-ebs = "ami-0ebd3156e21e9642f";
"19.09".eu-west-2.hvm-ebs = "ami-02a2b5480a79084b7";
"19.09".eu-west-3.hvm-ebs = "ami-09aa175c7588734f7";
"19.09".eu-central-1.hvm-ebs = "ami-00a7fafd7e237a330";
"19.09".us-east-1.hvm-ebs = "ami-00a8eeaf232a74f84";
"19.09".us-east-2.hvm-ebs = "ami-093efd3a57a1e03a8";
"19.09".us-west-1.hvm-ebs = "ami-0913e9a2b677fac30";
"19.09".us-west-2.hvm-ebs = "ami-02d9a19f77b47882a";
"19.09".ca-central-1.hvm-ebs = "ami-0627dd3f7b3627a29";
"19.09".ap-southeast-1.hvm-ebs = "ami-083614e4d08f2164d";
"19.09".ap-southeast-2.hvm-ebs = "ami-0048c704185ded6dc";
"19.09".ap-northeast-1.hvm-ebs = "ami-0329e7fc2d7f60bd0";
"19.09".ap-northeast-2.hvm-ebs = "ami-03d4ae7d0b5fc364f";
"19.09".ap-south-1.hvm-ebs = "ami-0b599690b35aeef23";

latest = self."19.09";
}; in self
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -211,6 +211,7 @@ in
# openstack-image-userdata doesn't work in a sandbox as the simulated openstack instance needs network access
#openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {};
openstack-image-metadata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).metadata or {};
orangefs = handleTest ./orangefs.nix {};
os-prober = handleTestOn ["x86_64-linux"] ./os-prober.nix {};
osquery = handleTest ./osquery.nix {};
osrm-backend = handleTest ./osrm-backend.nix {};
88 changes: 88 additions & 0 deletions nixos/tests/orangefs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import ./make-test.nix ({ ... } :

let
server = { pkgs, ... } : {
networking.firewall.allowedTCPPorts = [ 3334 ];
boot.initrd.postDeviceCommands = ''
${pkgs.e2fsprogs}/bin/mkfs.ext4 -L data /dev/vdb
'';

virtualisation.emptyDiskImages = [ 4096 ];

fileSystems = pkgs.lib.mkVMOverride
[ { mountPoint = "/data";
device = "/dev/disk/by-label/data";
fsType = "ext4";
}
];

services.orangefs.server = {
enable = true;
dataStorageSpace = "/data/storage";
metadataStorageSpace = "/data/meta";
servers = {
server1 = "tcp://server1:3334";
server2 = "tcp://server2:3334";
};
};
};

client = { lib, ... } : {
networking.firewall.enable = true;

services.orangefs.client = {
enable = true;
fileSystems = [{
target = "tcp://server1:3334/orangefs";
mountPoint = "/orangefs";
}];
};
};

in {
name = "orangefs";

nodes = {
server1 = server;
server2 = server;

client1 = client;
client2 = client;
};

testScript = ''
# format storage
foreach my $server (($server1,$server2))
{
$server->start();
$server->waitForUnit("multi-user.target");
$server->succeed("mkdir -p /data/storage /data/meta");
$server->succeed("chown orangefs:orangefs /data/storage /data/meta");
$server->succeed("chmod 0770 /data/storage /data/meta");
$server->succeed("sudo -g orangefs -u orangefs pvfs2-server -f /etc/orangefs/server.conf");
}
# start services after storage is formated on all machines
foreach my $server (($server1,$server2))
{
$server->succeed("systemctl start orangefs-server.service");
}
# Check if clients can reach and mount the FS
foreach my $client (($client1,$client2))
{
$client->start();
$client->waitForUnit("orangefs-client.service");
# Both servers need to be reachable
$client->succeed("pvfs2-check-server -h server1 -f orangefs -n tcp -p 3334");
$client->succeed("pvfs2-check-server -h server2 -f orangefs -n tcp -p 3334");
$client->waitForUnit("orangefs.mount");
}
# R/W test between clients
$client1->succeed("echo test > /orangefs/file1");
$client2->succeed("grep test /orangefs/file1");
'';
})
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 ];
};
}
8 changes: 4 additions & 4 deletions pkgs/applications/misc/firestarter/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{ stdenv, fetchFromGitHub, python3, cudatoolkit,
{ stdenv, fetchFromGitHub, glibc, python3, cudatoolkit,
withCuda ? true
}:

with stdenv.lib;
stdenv.mkDerivation rec {
pname = "firestarter";
version = "1.7.3";
version = "1.7.4";

src = fetchFromGitHub {
owner = "tud-zih-energy";
repo = "FIRESTARTER";
rev = "v${version}";
sha256 = "1gc7kmzx9nw22lyfmpyz72p974jf1hvw5nvszcaq7x6h8cz9ip15";
sha256 = "161mg0h1hvp6bxfjdhyfqrljvphys896mfd36254rbgzxm38ibi7";
};

nativeBuildInputs = [ python3 ];
buildInputs = optionals withCuda [ cudatoolkit ];
buildInputs = [ glibc.static ] ++ optionals withCuda [ cudatoolkit ];
preBuild = ''
mkdir -p build
cd build
Original file line number Diff line number Diff line change
@@ -93,19 +93,19 @@ let
fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ];

# Upstream source
version = "8.5.5";
version = "9.0";

lang = "en-US";

srcs = {
x86_64-linux = fetchurl {
url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz";
sha256 = "00r5k9bbfpv3s6shxqypl13psr1zz51xiyz3vmm4flhr2qa4ycsz";
sha256 = "0aajbk65lpcazn8mdk7ngaqp0sykql8zjlkhznphxxw9v59mq3b7";
};

i686-linux = fetchurl {
url = "https://github.com/TheTorProject/gettorbrowser/releases/download/v${version}/tor-browser-linux32-${version}_${lang}.tar.xz";
sha256 = "1nxvw5kiggfr4n5an436ass84cvwjviaa894kfm72yf2ls149f29";
url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz";
sha256 = "08ahs9985ndcq1ywz06q4znai6a3ivibjk473kymzl6k40q1c9y2";
};
};
in
@@ -165,15 +165,12 @@ stdenv.mkDerivation rec {
# interpreter for pre-compiled Go binaries by invoking the interpreter
# directly.
sed -i TorBrowser/Data/Tor/torrc-defaults \
-e "s|\(ClientTransportPlugin obfs2,obfs3,obfs4,scramblesuit\) exec|\1 exec $interp|" \
-e "s|\(ClientTransportPlugin meek_lite,obfs2,obfs3,obfs4,scramblesuit\) exec|\1 exec $interp|"
# Fixup fte transport
#
# Note: the script adds its dirname to search path automatically
sed -i TorBrowser/Tor/PluggableTransports/fteproxy.bin \
-e "s,/usr/bin/env python,${python27.interpreter},"
# Similarly fixup snowflake
sed -i TorBrowser/Data/Tor/torrc-defaults \
-e "s|\(ClientTransportPlugin snowflake\) exec|\1 exec $interp|"
patchelf --set-rpath "${fteLibPath}" TorBrowser/Tor/PluggableTransports/fte/cDFA.so
# Prepare for autoconfig.
#
@@ -237,6 +234,7 @@ stdenv.mkDerivation rec {
# Preload extensions by moving into the runtime instead of storing under the
# user's profile directory.
mkdir -p "$TBB_IN_STORE/browser/extensions"
mv "$TBB_IN_STORE/TorBrowser/Data/Browser/profile.default/extensions/"* \
"$TBB_IN_STORE/browser/extensions"
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 = ''
6 changes: 3 additions & 3 deletions pkgs/applications/networking/cawbird/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ stdenv, fetchFromGitHub, glib, gtk3, json-glib, sqlite, libsoup, gettext, vala
, meson, ninja, pkgconfig, gnome3, gst_all_1, wrapGAppsHook, gobject-introspection
, glib-networking, python3, fetchpatch }:
, glib-networking, python3 }:

stdenv.mkDerivation rec {
version = "1.0.2";
version = "1.0.3.1";
pname = "cawbird";

src = fetchFromGitHub {
owner = "IBBoard";
repo = "cawbird";
rev = "v${version}";
sha256 = "sha256:0b79ngwilicqkgacva93cir4rmk15yzgsih56yb3a4n6bqjispay";
sha256 = "sha256:1v1y4bx0mm518b9vlpsry12fw1qz2j28jfhjqq73blvzd89lgb0y";
};

nativeBuildInputs = [
2 changes: 1 addition & 1 deletion pkgs/applications/networking/dropbox/default.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ assert lib.elem stdenv.hostPlatform.system platforms;
# Dropbox client to bootstrap installation.
# The client is self-updating, so the actual version may be newer.
let
version = "81.4.195";
version = "83.4.152";

arch = {
x86_64-linux = "x86_64";
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"
'';
4 changes: 2 additions & 2 deletions pkgs/applications/networking/maestral/default.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@

python3Packages.buildPythonApplication rec {
pname = "maestral${lib.optionalString withGui "-gui"}";
version = "0.4.0";
version = "0.4.2";

src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-dropbox";
rev = "v${version}";
sha256 = "1jjn9cz43850xvs52gvx16qc5z4l91y4kpn6fpl05iwgaisbi1ws";
sha256 = "0xis0cqfp3wgajwk44dmi2gbfirmz0a0zi25qxdzpdn0z19hp88m";
};

disabled = python3Packages.pythonOlder "3.6";
9 changes: 7 additions & 2 deletions pkgs/applications/radio/uhd/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig
, python, pythonPackages, orc, libusb1, boost }:
, python, orc, libusb1, boost }:

# You need these udev rules to not have to run as root (copied from
# ${uhd}/share/uhd/utils/uhd-usrp.rules):
@@ -40,7 +40,12 @@ in stdenv.mkDerivation {
[ (stdenv.lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ];

nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python pythonPackages.pyramid_mako orc libusb1 boost ];
buildInputs = [
(python.withPackages (ps: with ps; [ Mako six requests ]))
orc
libusb1
boost
];

# Build only the host software
preConfigure = "cd host";
16 changes: 9 additions & 7 deletions pkgs/applications/radio/welle-io/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
{ mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig
, qtbase, qtcharts, qtmultimedia, qtquickcontrols, qtquickcontrols2
, faad2, rtl-sdr, soapysdr-with-plugins, libusb, fftwSinglePrec }:
, faad2, rtl-sdr, soapysdr-with-plugins, libusb, fftwSinglePrec, lame, mpg123 }:
let

version = "1.0";
version = "2.0";

in stdenv.mkDerivation {
in mkDerivation {

pname = "welle-io";
inherit version;

src = fetchFromGitHub {
owner = "AlbrechtL";
repo = "welle.io";
rev = "V${version}";
sha256 = "1fsr0c2w16z45mcr85sqmllw1xf2gn6hp6f6fmgx2zfprq8gdmcr";
rev = "v${version}";
sha256 = "0cp8dyswgwidabaj9bvkkc6hl3160096j6myckd5bw00zxnbfiqn";
};

nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [
faad2
fftwSinglePrec
lame
libusb
mpg123
qtbase
qtcharts
qtmultimedia
@@ -38,7 +40,7 @@ in stdenv.mkDerivation {

enableParallelBuilding = true;

meta = with stdenv.lib; {
meta = with lib; {
description = "A DAB/DAB+ Software Radio";
homepage = https://www.welle.io/;
maintainers = with maintainers; [ ck3d markuskowa ];
44 changes: 25 additions & 19 deletions pkgs/data/fonts/iosevka/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, lib, pkgs, fetchFromGitHub
, nodejs, nodePackages, remarshal, ttfautohint-nox, otfcc
{ stdenv, lib, pkgs, fetchFromGitHub, nodejs, nodePackages, remarshal
, ttfautohint-nox, otfcc

# Custom font set options.
# See https://github.com/be5invis/Iosevka#build-your-own-style
@@ -13,27 +13,30 @@
# ];
# };
, privateBuildPlan ? null
# Extra parameters. Can be used for ligature mapping.
# Extra parameters. Can be used for ligature mapping.
# It must be a raw toml string.
#
# Ex:
# [[iosevka.compLig]]
# unicode = 57808 # 0xe1d0
# featureTag = 'XHS0'
# sequence = "+>"
, extraParameters ? null
# Custom font set name. Required if any custom settings above.
, set ? null
}:
# Custom font set name. Required if any custom settings above.
, set ? null }:

assert (privateBuildPlan != null) -> set != null;

stdenv.mkDerivation rec {
pname =
if set != null
then "iosevka-${set}"
else "iosevka";
pname = if set != null then "iosevka-${set}" else "iosevka";

version = "2.3.0";
version = "2.3.2";

src = fetchFromGitHub {
owner = "be5invis";
repo = "Iosevka";
rev = "v${version}";
sha256 = "1qnbxhx9wvij9zia226mc3sy8j7bfsw5v1cvxvsbbwjskwqdamvv";
sha256 = "0s0vdvp1sn8p2pi2xm9n05pabk30ki7wjlmr0zz0nkhidb8apw6k";
};

nativeBuildInputs = [
@@ -44,9 +47,10 @@ stdenv.mkDerivation rec {
ttfautohint-nox
];

privateBuildPlanJSON = builtins.toJSON { buildPlans.${pname} = privateBuildPlan; };
extraParametersJSON = builtins.toJSON { ${pname} = extraParameters; };
passAsFile = [ "privateBuildPlanJSON" "extraParametersJSON" ];
privateBuildPlanJSON =
builtins.toJSON { buildPlans.${pname} = privateBuildPlan; };
inherit extraParameters;
passAsFile = [ "privateBuildPlanJSON" "extraParameters" ];

configurePhase = ''
runHook preConfigure
@@ -55,9 +59,11 @@ stdenv.mkDerivation rec {
''}
${lib.optionalString (extraParameters != null) ''
echo -e "\n" >> parameters.toml
remarshal -i "$extraParametersJSONPath" -if json -of toml >> parameters.toml
cat "$extraParametersPath" >> parameters.toml
''}
ln -s ${nodePackages."iosevka-build-deps-../../data/fonts/iosevka"}/lib/node_modules/iosevka-build-deps/node_modules .
ln -s ${
nodePackages."iosevka-build-deps-../../data/fonts/iosevka"
}/lib/node_modules/iosevka-build-deps/node_modules .
runHook postConfigure
'';

@@ -76,8 +82,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = https://be5invis.github.io/Iosevka;
downloadPage = https://github.com/be5invis/Iosevka/releases;
homepage = "https://be5invis.github.io/Iosevka";
downloadPage = "https://github.com/be5invis/Iosevka/releases";
description = ''
Slender monospace sans-serif and slab-serif typeface inspired by Pragmata
Pro, M+ and PF DIN Mono, designed to be the ideal font for programming.
2 changes: 1 addition & 1 deletion pkgs/data/fonts/iosevka/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iosevka-build-deps",
"version": "2.3.0",
"version": "2.3.2",
"scripts": {
"build": "verda -f verdafile.js"
},
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";
4 changes: 2 additions & 2 deletions pkgs/desktops/enlightenment/econnman.nix
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
meta = {
description = "A user interface for the connman network connection manager";
homepage = https://enlightenment.org/;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}
68 changes: 35 additions & 33 deletions pkgs/desktops/enlightenment/efl.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{ stdenv, fetchurl, pkgconfig, SDL, SDL2, alsaLib, bullet, curl, dbus,
{ stdenv, fetchurl, meson, ninja, pkgconfig, SDL, SDL2, alsaLib, avahi, bullet, check, curl, dbus,
doxygen, expat, fontconfig, freetype, fribidi, ghostscript, giflib,
glib, gst_all_1, gtk3, harfbuzz, jbig2dec, libGL, libdrm, libinput,
glib, gst_all_1, gtk3, harfbuzz, ibus, jbig2dec, libGL, libdrm, libinput,
libjpeg, libpng, libpulseaudio, libraw, librsvg, libsndfile,
libspectre, libtiff, libwebp, libxkbcommon, luajit, lz4, mesa,
openjpeg, openssl, poppler, python27Packages, systemd, udev,
utillinux, writeText, xineLib, xorg, zlib
utillinux, writeText, xorg, zlib
}:

stdenv.mkDerivation rec {
pname = "efl";
version = "1.22.5";
version = "1.23.1";

src = fetchurl {
url = "http://download.enlightenment.org/rel/libs/${pname}/${pname}-${version}.tar.xz";
sha256 = "1cjk56z0whpzcqwg3xdq23kyp1g83xa67m9dlp7ywmb36bn4ca59";
sha256 = "0q9g4j7k10s1a8rv2ca9v9lydh7ml3zsrqvgncc4qhvdl76208nn";
};

nativeBuildInputs = [
meson
ninja
gtk3
pkgconfig
check
];

buildInputs = [
SDL
avahi
fontconfig
freetype
giflib
@@ -31,6 +35,7 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gstreamer
ibus
libGL
libpng
libpulseaudio
@@ -73,7 +78,6 @@ stdenv.mkDerivation rec {
poppler
python27Packages.dbus-python
utillinux
xineLib
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libXdamage
@@ -90,30 +94,25 @@ stdenv.mkDerivation rec {
xorg.xcbutilkeysyms
];

# ac_ct_CXX must be set to random value, because then it skips some magic which does alternative searching for g++
configureFlags = [
"--enable-sdl"
"--enable-drm"
"--enable-elput"
"--with-opengl=full"
"--enable-image-loader-jp2k"
"--enable-xinput22"
"--enable-multisense"
"--enable-liblz4"
"--enable-systemd"
"--enable-image-loader-webp"
"--enable-harfbuzz"
"--enable-xine"
"--enable-fb"
"--disable-tslib"
"--with-systemdunitdir=$out/systemd/user"
"ac_ct_CXX=foo"
mesonFlags = [
"--buildtype=release"
"-D build-tests=false" # disable build tests, which are not working
"-D drm=true"
"-D embedded-lz4=false"
"-D evas-loaders-disabler=json"
"-D fb=true"
"-D opengl=full"
"-D sdl=true"
];

patches = [ ./efl-elua.patch ];

postPatch = ''
patchShebangs src/lib/elementary/config_embed
# fix destination of systemd unit and dbus service
substituteInPlace systemd-services/meson.build --replace "dep.get_pkgconfig_variable('systemduserunitdir')" "'$out/systemd/user'"
substituteInPlace dbus-services/meson.build --replace "dep.get_pkgconfig_variable('session_bus_services_dir')" "'$out/share/dbus-1/services'"
'';

# bin/edje_cc creates $HOME/.run, which would break build of reverse dependencies.
@@ -122,35 +121,38 @@ stdenv.mkDerivation rec {
'';

preConfigure = ''
export LD_LIBRARY_PATH="$(pwd)/src/lib/eina/.libs:$LD_LIBRARY_PATH"
# allow ecore_con to find libcurl.so, which is a runtime dependency (it is dlopened)
export LD_LIBRARY_PATH="${curl.out}/lib:$LD_LIBRARY_PATH"
source "$setupHook"
'';

NIX_CFLAGS_COMPILE = [ "-DluaL_reg=luaL_Reg" ]; # needed since luajit-2.1.0-beta3

postInstall = ''
# fix use of $out variable
substituteInPlace "$out/share/elua/core/util.lua" --replace '$out' "$out"
# add all module include dirs to the Cflags field in efl.pc
modules=$(for i in "$out/include/"*/; do printf ' -I''${includedir}/'`basename $i`; done)
substituteInPlace "$out/lib/pkgconfig/efl.pc" --replace 'Cflags: -I''${includedir}/efl-1' \
'Cflags: -I''${includedir}/eina-1/eina'"$modules"
substituteInPlace "$out/lib/pkgconfig/efl.pc" \
--replace 'Cflags: -I''${includedir}/efl-1' \
'Cflags: -I''${includedir}/eina-1/eina'"$modules"
# build icon cache
gtk-update-icon-cache "$out"/share/icons/Enlightenment-X
'';

# EFL applications depend on libcurl, although it is linked at
# runtime by hand in code (it is dlopened).
postFixup = ''
# EFL applications depend on libcurl, which is linked at runtime by hand in code (it is dlopened)
patchelf --add-needed ${curl.out}/lib/libcurl.so $out/lib/libecore_con.so
'';

enableParallelBuilding = true;

meta = {
description = "Enlightenment foundation libraries";
homepage = https://enlightenment.org/;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.lgpl3;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx ];
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}
2 changes: 1 addition & 1 deletion pkgs/desktops/enlightenment/enlightenment.nix
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [
(pkgconfig.override { vanilla = true; })
gettext
meson
ninja
pkgconfig
];

buildInputs = [
2 changes: 1 addition & 1 deletion pkgs/desktops/enlightenment/ephoto.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [
(pkgconfig.override { vanilla = true; })
pkgconfig
mesa.dev # otherwise pkg-config does not find gbm
makeWrapper
];
2 changes: 1 addition & 1 deletion pkgs/desktops/enlightenment/rage.nix
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
meson
ninja
(pkgconfig.override { vanilla = true; })
pkgconfig
mesa.dev
wrapGAppsHook
];
6 changes: 3 additions & 3 deletions pkgs/desktops/enlightenment/terminology.nix
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
meson
ninja
(pkgconfig.override { vanilla = true; })
pkgconfig
makeWrapper
];

@@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Powerful terminal emulator based on EFL";
homepage = https://www.enlightenment.org/about-terminology;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx ];
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}
137 changes: 110 additions & 27 deletions pkgs/desktops/gnome-3/core/empathy/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,54 @@
{ stdenv, intltool, fetchurl, webkitgtk, pkgconfig, gtk3, glib
, file, librsvg, gnome3, gdk-pixbuf, python3
, telepathy-glib, telepathy-farstream, glibcLocales
, clutter-gtk, clutter-gst, gst_all_1, cogl, gnome-online-accounts
, gcr, libsecret, folks, libpulseaudio, telepathy-mission-control
, telepathy-logger, libnotify, clutter, libsoup, gnutls
, evolution-data-server, yelp-xsl
, libcanberra-gtk3, p11-kit, farstream, libtool, shared-mime-info
, wrapGAppsHook, itstool, libxml2, libxslt, icu, libgee, gsettings-desktop-schemas
, isocodes, enchant, libchamplain, geoclue2, geocode-glib, cheese, libgudev }:
{ stdenv
, intltool
, fetchurl
, webkitgtk
, pkgconfig
, gtk3
, glib
, file
, librsvg
, gnome3
, gdk-pixbuf
, python3
, telepathy-glib
, telepathy-farstream
, clutter-gtk
, clutter-gst
, gst_all_1
, cogl
, gnome-online-accounts
, gcr
, libsecret
, folks
, libpulseaudio
, telepathy-mission-control
, telepathy-logger
, libnotify
, clutter
, libsoup
, gnutls
, evolution-data-server
, yelp-xsl
, libcanberra-gtk3
, p11-kit
, farstream
, libtool
, shared-mime-info
, wrapGAppsHook
, itstool
, libxml2
, libxslt
, icu
, libgee
, gsettings-desktop-schemas
, isocodes
, enchant
, libchamplain
, geoclue2
, geocode-glib
, cheese
, libgudev
}:

stdenv.mkDerivation rec {
pname = "empathy";
@@ -18,34 +59,76 @@ stdenv.mkDerivation rec {
sha256 = "0sn10fcymc6lyrabk7vx8lpvlaxxkqnmcwj9zdkfa8qf3388k4nc";
};

propagatedUserEnvPkgs = [
gnome-online-accounts shared-mime-info
];
propagatedBuildInputs = [
folks telepathy-logger evolution-data-server telepathy-mission-control
folks
telepathy-logger
evolution-data-server
telepathy-mission-control
];

nativeBuildInputs = [
pkgconfig libtool intltool itstool file wrapGAppsHook
libxml2 libxslt yelp-xsl python3 glibcLocales
pkgconfig
libtool
intltool
itstool
file
wrapGAppsHook
libxml2
libxslt
yelp-xsl
python3
];

buildInputs = [
gtk3 glib webkitgtk icu gnome-online-accounts
telepathy-glib clutter-gtk clutter-gst cogl
gst_all_1.gstreamer gst_all_1.gst-plugins-base
gcr libsecret libpulseaudio gdk-pixbuf
libnotify clutter libsoup gnutls libgee p11-kit
libcanberra-gtk3 telepathy-farstream farstream
gnome3.adwaita-icon-theme gsettings-desktop-schemas
gtk3
glib
webkitgtk
icu
gnome-online-accounts
telepathy-glib
clutter-gtk
clutter-gst
cogl
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gcr
libsecret
libpulseaudio
gdk-pixbuf
libnotify
clutter
libsoup
gnutls
libgee
p11-kit
libcanberra-gtk3
telepathy-farstream
farstream
gnome3.adwaita-icon-theme
gsettings-desktop-schemas
librsvg

# Spell-checking
enchant isocodes
enchant
isocodes

# Display maps, location awareness, geocode support
libchamplain geoclue2 geocode-glib
libchamplain
geoclue2
geocode-glib

# Cheese webcam support, camera monitoring
cheese libgudev
cheese
libgudev
];

LC_ALL = "en_US.UTF-8";
enableParallelBuilding = true;

preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';

passthru = {
updateScript = gnome3.updateScript {
875 changes: 150 additions & 725 deletions pkgs/development/compilers/elm/packages/node-packages.nix

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions pkgs/development/libraries/forge/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, arrayfire, expat, fontconfig, freeimage, freetype, boost
, mesa, libGLU_combined, glfw3, SDL2, cudatoolkit
}:

stdenv.mkDerivation rec {
pname = "forge";
version = "1.0.4";

src = fetchFromGitHub {
owner = "arrayfire";
repo = "forge";
rev = "v${version}";
sha256 = "00pmky6kccd7pwi8sma79qpmzr2f9pbn6gym3gyqm64yckw6m484";
fetchSubmodules = true;
};

nativeBuildInputs = [
cmake
pkgconfig
];

buildInputs = [
expat
fontconfig
freetype
boost.out
boost.dev
freeimage
mesa
libGLU_combined
glfw3
SDL2
cudatoolkit
arrayfire
];

meta = with stdenv.lib; {
description = "An OpenGL interop library that can be used with ArrayFire or any other application using CUDA or OpenCL compute backend";
longDescription = ''
An OpenGL interop library that can be used with ArrayFire or any other application using CUDA or OpenCL compute backend.
The goal of Forge is to provide high performance OpenGL visualizations for C/C++ applications that use CUDA/OpenCL.
Forge uses OpenGL >=3.3 forward compatible contexts, so please make sure you have capable hardware before trying it out.
'';
license = licenses.bsd3;
homepage = "https://arrayfire.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ chessai ];
};

}
26 changes: 26 additions & 0 deletions pkgs/development/libraries/libck/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "ck";
version = "0.7.0";

src = fetchFromGitHub {
owner = "concurrencykit";
repo = pname;
rev = version;
sha256 = "1w7g0y1n7jslca693fb8sanlfi1biq956dw6avdx6pf3c2s7l9jd";
};

dontDisableStatic = true;

meta = with stdenv.lib; {
description = "High-performance concurrency research library";
longDescription = ''
Concurrency primitives, safe memory reclamation mechanisms and non-blocking data structures for the research, design and implementation of high performance concurrent systems.
'';
license = with licenses; [ asl20 bsd2 ];
homepage = "http://concurrencykit.org/";
platforms = platforms.linux;
maintainers = with maintainers; [ chessai ];
};
}
19 changes: 16 additions & 3 deletions pkgs/development/libraries/polkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{ stdenv, fetchurl, pkgconfig, glib, expat, pam, perl, fetchpatch
, intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
, docbook_xml_dtd_412, gtk-doc, coreutils
, useSystemd ? stdenv.isLinux, systemd
, useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind
, withGnome ? true
, doCheck ? stdenv.isLinux
# A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault).
# Not yet investigated; it may be due to the "Make netgroup support optional"
# patch not updating the tests correctly yet, or doing something wrong,
# or being unrelated to that.
, doCheck ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl)
}:

let
@@ -28,6 +32,15 @@ stdenv.mkDerivation rec {
url = "https://gitlab.freedesktop.org/polkit/polkit/merge_requests/11.patch";
sha256 = "17lv7xj5ksa27iv4zpm4zwd4iy8zbwjj4ximslfq3sasiz9kxhlp";
})
] ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
# Make netgroup support optional (musl does not have it)
# Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10
# We use the version of the patch that Alpine uses successfully.
(fetchpatch {
name = "make-innetgr-optional.patch";
url = "https://git.alpinelinux.org/aports/plain/main/polkit/make-innetgr-optional.patch?id=391e7de6ced1a96c2dac812e0b12f1d7e0ea705e";
sha256 = "1p9qqqhnrfyjvvd50qh6vpl256kyfblm1qnhz5pm09klrl1bh1n4";
})
];

postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
@@ -41,7 +54,7 @@ stdenv.mkDerivation rec {
++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages
buildInputs =
[ expat pam spidermonkey_60 ]
++ stdenv.lib.optional useSystemd systemd
++ (if useSystemd then [systemd] else [elogind])
++ stdenv.lib.optional withGnome gobject-introspection;

propagatedBuildInputs = [
8,473 changes: 4,055 additions & 4,418 deletions pkgs/development/node-packages/node-packages-v10.nix

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions pkgs/development/node-packages/node-packages-v12.nix
Original file line number Diff line number Diff line change
@@ -256,13 +256,13 @@ let
sha1 = "1b681c21ff84033c826543090689420d187151dc";
};
};
"chownr-1.1.2" = {
"chownr-1.1.3" = {
name = "chownr";
packageName = "chownr";
version = "1.1.2";
version = "1.1.3";
src = fetchurl {
url = "https://registry.npmjs.org/chownr/-/chownr-1.1.2.tgz";
sha512 = "GkfeAQh+QNy3wquu9oIZr6SS5x7wGdSgNQvD10X3r+AZr1Oys22HW8kAmDMvNg2+Dm0TeGaEuO8gFwdBXxwO8A==";
url = "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz";
sha512 = "i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==";
};
};
"class-utils-0.3.6" = {
@@ -697,13 +697,13 @@ let
sha1 = "5eff8e3e684d569ae4cb2b1282604e8ba62149fa";
};
};
"glob-7.1.4" = {
"glob-7.1.5" = {
name = "glob";
packageName = "glob";
version = "7.1.4";
version = "7.1.5";
src = fetchurl {
url = "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz";
sha512 = "hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==";
url = "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz";
sha512 = "J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==";
};
};
"global-modules-1.0.0" = {
@@ -724,13 +724,13 @@ let
sha1 = "dbf743c6c14992593c655568cb66ed32c0122ebe";
};
};
"graceful-fs-4.2.2" = {
"graceful-fs-4.2.3" = {
name = "graceful-fs";
packageName = "graceful-fs";
version = "4.2.2";
version = "4.2.3";
src = fetchurl {
url = "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz";
sha512 = "IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==";
url = "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz";
sha512 = "a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==";
};
};
"grunt-known-options-1.1.1" = {
@@ -814,13 +814,13 @@ let
sha512 = "eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==";
};
};
"hosted-git-info-2.8.4" = {
"hosted-git-info-2.8.5" = {
name = "hosted-git-info";
packageName = "hosted-git-info";
version = "2.8.4";
version = "2.8.5";
src = fetchurl {
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.4.tgz";
sha512 = "pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==";
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz";
sha512 = "kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==";
};
};
"http-signature-1.2.0" = {
@@ -1255,22 +1255,22 @@ let
sha1 = "857fcabfc3397d2625b8228262e86aa7a011b05d";
};
};
"minipass-2.8.1" = {
"minipass-2.9.0" = {
name = "minipass";
packageName = "minipass";
version = "2.8.1";
version = "2.9.0";
src = fetchurl {
url = "https://registry.npmjs.org/minipass/-/minipass-2.8.1.tgz";
sha512 = "QCG523ParRcE2+9A6wYh9UI3uy2FFLw4DQaVYQrY5HPfszc5M6VDD+j0QCwHm19LI2imes4RB+NBD8cOJccyCg==";
url = "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz";
sha512 = "wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==";
};
};
"minizlib-1.2.2" = {
"minizlib-1.3.3" = {
name = "minizlib";
packageName = "minizlib";
version = "1.2.2";
version = "1.3.3";
src = fetchurl {
url = "https://registry.npmjs.org/minizlib/-/minizlib-1.2.2.tgz";
sha512 = "hR3At21uSrsjjDTWrbu0IMLTpnkpv8IIMFDFaoz43Tmu4LkmAXfH44vNNzpTnf+OAQQCHrb91y/wc2J4x5XgSQ==";
url = "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz";
sha512 = "6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==";
};
};
"mixin-deep-1.3.2" = {
@@ -2038,13 +2038,13 @@ let
sha1 = "6a385fb8853d952d5ff05d0e8aaf94278dc63dcf";
};
};
"tar-4.4.11" = {
"tar-4.4.13" = {
name = "tar";
packageName = "tar";
version = "4.4.11";
version = "4.4.13";
src = fetchurl {
url = "https://registry.npmjs.org/tar/-/tar-4.4.11.tgz";
sha512 = "iI4zh3ktLJKaDNZKZc+fUONiQrSn9HkCFzamtb7k8FFmVilHVob7QsLX/VySAW8lAviMzMbFw4QtFb4errwgYA==";
url = "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz";
sha512 = "w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==";
};
};
"temp-0.9.0" = {
@@ -2272,13 +2272,13 @@ let
sha1 = "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f";
};
};
"yallist-3.0.3" = {
"yallist-3.1.1" = {
name = "yallist";
packageName = "yallist";
version = "3.0.3";
version = "3.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz";
sha512 = "S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==";
url = "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz";
sha512 = "a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==";
};
};
};
@@ -2616,7 +2616,7 @@ in
sources."buffer-from-1.1.1"
sources."builtins-1.0.3"
sources."caseless-0.12.0"
sources."chownr-1.1.2"
sources."chownr-1.1.3"
sources."code-point-at-1.1.0"
sources."combined-stream-1.0.8"
sources."concat-map-0.0.1"
@@ -2651,12 +2651,12 @@ in
sources."fs.realpath-1.0.0"
sources."gauge-2.7.4"
sources."getpass-0.1.7"
sources."glob-7.1.4"
sources."graceful-fs-4.2.2"
sources."glob-7.1.5"
sources."graceful-fs-4.2.3"
sources."har-schema-2.0.0"
sources."har-validator-5.1.3"
sources."has-unicode-2.0.1"
sources."hosted-git-info-2.8.4"
sources."hosted-git-info-2.8.5"
sources."http-signature-1.2.0"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
@@ -2675,8 +2675,8 @@ in
sources."mime-types-2.1.24"
sources."minimatch-3.0.4"
sources."minimist-0.0.8"
sources."minipass-2.8.1"
sources."minizlib-1.2.2"
sources."minipass-2.9.0"
sources."minizlib-1.3.3"
sources."mkdirp-0.5.1"
sources."ncp-0.4.2"
sources."nijs-0.0.25"
@@ -2748,7 +2748,7 @@ in
];
})
sources."strip-ansi-3.0.1"
sources."tar-4.4.11"
sources."tar-4.4.13"
sources."temp-0.9.0"
(sources."tough-cookie-2.4.3" // {
dependencies = [
@@ -2768,7 +2768,7 @@ in
sources."walk-2.3.14"
sources."wide-align-1.1.3"
sources."wrappy-1.0.2"
sources."yallist-3.0.3"
sources."yallist-3.1.1"
];
buildInputs = globalBuildInputs;
meta = {
10 changes: 5 additions & 5 deletions pkgs/development/ocaml-modules/sawja/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{stdenv, fetchurl, which, perl, ocaml, findlib, javalib, camlp4 }:
{stdenv, fetchurl, which, perl, ocaml, findlib, javalib }:

assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";

let
pname = "sawja";
version = "1.5.6";
version = "1.5.7";
webpage = "http://sawja.inria.fr/";
in
stdenv.mkDerivation {

name = "ocaml${ocaml.version}-${pname}-${version}";

src = fetchurl {
url = https://gforge.inria.fr/frs/download.php/file/37819/sawja-1.5.6.tar.bz2;
sha256 = "0dkfdc8h94r7kj4p8q57fz7fssypgmjrix8xff0va7x1nya5sdp3";
url = https://gforge.inria.fr/frs/download.php/file/38117/sawja-1.5.7.tar.bz2;
sha256 = "08xv1bq4pragc1g93w4dnbn0mighcjwfp3ixj9jzmhka2vzqm4cc";
};

buildInputs = [ which perl ocaml findlib camlp4 ];
buildInputs = [ which perl ocaml findlib ];

patches = [ ./configure.sh.patch ./Makefile.config.example.patch ];

3 changes: 1 addition & 2 deletions pkgs/development/python-modules/blivet/default.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@

let
pyenable = { enablePython = true; };
selinuxWithPython = libselinux.override pyenable;
cryptsetupWithPython = cryptsetup.override pyenable;
in buildPythonPackage rec {
pname = "blivet";
@@ -31,7 +30,7 @@ in buildPythonPackage rec {
'';

propagatedBuildInputs = [
pykickstart pyparted pyblock pyudev selinuxWithPython.py cryptsetupWithPython
pykickstart pyparted pyblock pyudev libselinux cryptsetupWithPython
six
];

2 changes: 1 addition & 1 deletion pkgs/development/python-modules/bpython/default.nix
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];

postInstall = ''
substituteInPlace "$out/share/applications/bpython.desktop" \
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
'';

19 changes: 7 additions & 12 deletions pkgs/development/python-modules/cherrypy/default.nix
Original file line number Diff line number Diff line change
@@ -7,29 +7,24 @@

buildPythonPackage rec {
pname = "cherrypy";
version = "18.1.2";
version = "18.3.0";

disabled = !isPy3k;

src = fetchPypi {
pname = "CherryPy";
inherit version;
sha256 = "1w3hpsg7q8shdmscmbqk00w90lcw3brary7wl1a56k5h7nx33pj8";
sha256 = "0q6cs4vrv0rwim4byxfizrlp4h6hmwg3n4baz0ga66vvgiz6hgk8";
};

# Remove patches once 96b34df and 14c12d2
# Remove patches once 88d2163 and 713f672
# become part of a release - they're currently only present in master.
# ref: https://github.com/cherrypy/cherrypy/pull/1791
# ref: https://github.com/cherrypy/cherrypy/pull/1820
patches = [
(fetchpatch {
name = "pytest5-1.patch";
url = "https://github.com/cherrypy/cherrypy/commit/96b34dfea7853b0189bc0a3878b6ddff0d4e505c.patch";
sha256 = "0zy53mahffgkpd844118b42lsk5lkjmig70d60x1i46w6gnr61mi";
})
(fetchpatch {
name = "pytest5-2.patch";
url = "https://github.com/cherrypy/cherrypy/commit/14c12d2420a4b3765bb241250bd186e93b2f25eb.patch";
sha256 = "0ihcz7b5myn923rq5665b98pz52hnf6fcys2y2inf23r3i07scyz";
name = "test_HTTP11_Timeout.patch";
url = "https://github.com/cherrypy/cherrypy/commit/88d21630f68090c56d07000cabb6df4f1b612a71.patch";
sha256 = "1i6a3qs3ijyd9rgsxb8axigkzdlmr5sl3ljif9rvn0d90211bzwh";
})
];

31 changes: 31 additions & 0 deletions pkgs/development/python-modules/labelbox/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, jinja2
, pillow
, rasterio
, shapely
}:

buildPythonPackage rec {
pname = "labelbox";
version = "2.1";

src = fetchPypi {
inherit pname version;
sha256 = "f97f01bf030b115d8b7f7b12a10ec5efe54750ad66b6b3567550b517a543ad11";
};

propagatedBuildInputs = [ jinja2 requests pillow rasterio shapely ];

# Test cases are not running on pypi or GitHub
doCheck = false;

meta = with lib; {
homepage = https://github.com/Labelbox/Labelbox;
description = "Platform API for LabelBox";
license = licenses.asl20;
maintainers = with maintainers; [ rakesh4g ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/opentracing/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, futures
, gevent
, mock
, pytest
, tornado }:

buildPythonPackage rec {
pname = "opentracing";
version = "2.2.0";

src = fetchPypi {
inherit pname version;
sha256 = "cfd231ba5c58f90bc277787e62861eb0c6e4af76e42957bec240bbdf71fb7e0e";
};

propagatedBuildInputs = lib.optional isPy27 futures;

checkInputs = [ gevent mock pytest tornado ];

checkPhase = ''
pytest
'';

meta = with lib; {
homepage = https://github.com/opentracing/opentracing-python;
description = "Platform API for OpenTracing";
license = licenses.asl20;
maintainers = with maintainers; [ rakesh4g ];
};
}
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/python-efl/default.nix
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@

buildPythonPackage rec {
pname = "python-efl";
version = "1.22.0";
version = "1.23.0";

src = fetchurl {
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
sha256 = "1qhy63c3fs2bxkx2np5z14hyxbr12ii030crsjnhpbyw3mic0s63";
sha256 = "16yn6a1b9167nfmryyi44ma40m20ansfpwgrvqzfvwix7qaz9pib";
};

nativeBuildInputs = [ pkgconfig ];
@@ -32,6 +32,6 @@ buildPythonPackage rec {
homepage = https://phab.enlightenment.org/w/projects/python_bindings_for_efl/;
platforms = platforms.linux;
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx ];
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/trezor/default.nix
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
, libusb1
, rlp
, shamir-mnemonic
, trezor-udev-rules
}:

buildPythonPackage rec {
@@ -24,7 +25,7 @@ buildPythonPackage rec {
sha256 = "cd8aafd70a281daa644c4a3fb021ffac20b7a88e86226ecc8bb3e78e1734a184";
};

propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic ];
propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic trezor-udev-rules ];

checkInputs = [
pytest
6 changes: 6 additions & 0 deletions pkgs/development/r-modules/default.nix
Original file line number Diff line number Diff line change
@@ -277,6 +277,7 @@ let
KFKSDS = [ pkgs.gsl_1 ];
kza = [ pkgs.fftw.dev ];
magick = [ pkgs.imagemagick.dev ];
ModelMetrics = lib.optional stdenv.isDarwin pkgs.llvmPackages.openmp;
mvabund = [ pkgs.gsl_1 ];
mwaved = [ pkgs.fftw.dev ];
ncdf4 = [ pkgs.netcdf ];
@@ -735,6 +736,11 @@ let
+ lib.optionalString stdenv.isDarwin " -fopenmp";
});

ModelMetrics = old.ModelMetrics.overrideDerivation (attrs: {
NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE
+ lib.optionalString stdenv.isDarwin " -fopenmp";
});

rpf = old.rpf.overrideDerivation (attrs: {
patchPhase = "patchShebangs configure";
});
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/brakeman/default.nix
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "brakeman";
version = "4.6.1";
source.sha256 = "04chxflc5n6q0kz93c9dc6jwqrz0mrrlpm4iqncb39yyvg4ghcbf";
version = "4.7.1";
source.sha256 = "149ny2n82hzxw4g8xnimjavs2niq14wl9kwq8zlvadavdg4g9ind";

meta = with lib; {
description = "Static analysis security scanner for Ruby on Rails";
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/flow/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "flow";
version = "0.110.0";
version = "0.111.0";

src = fetchFromGitHub {
owner = "facebook";
repo = "flow";
rev = "refs/tags/v${version}";
sha256 = "0w0z4pgwwvi12kvfg5xdjc83qw030a0c58cgr5rz3xzw2pgbdfm2";
sha256 = "17w26b17n81kc1igmr6dgm6y2aa1ng0cbhbhwwz3iwsf0dm6db1l";
};

installPhase = ''
12 changes: 6 additions & 6 deletions pkgs/development/tools/analysis/radare2/default.nix
Original file line number Diff line number Diff line change
@@ -110,12 +110,12 @@ in {
#<generated>
# DO NOT EDIT! Automatically generated by ./update.py
radare2 = generic {
version_commit = "22775";
gittap = "3.9.0";
gittip = "2afe613741d07f35a5d80bc4e2dade2113ae6a74";
rev = "3.9.0";
version = "3.9.0";
sha256 = "0jzz3fzcr9xm8q6n86mhrf30h6cbh147ss9h993cm34fd4d5z7ah";
version_commit = "23159";
gittap = "4.0.0";
gittip = "e97047299af43e9b4e658c246816a2b48bdc087e";
rev = "4.0.0";
version = "4.0.0";
sha256 = "15b79hska3skrlbrig7fl405kmbvy4410m93lfsfmkwxs0wr9jis";
cs_ver = "4.0.1";
cs_sha256 = "0ijwxxk71nr9z91yxw20zfj4bbsbrgvixps5c7cpj163xlzlwba6";
};
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ lib, buildGoPackage, fetchFromGitLab, fetchurl }:

let
version = "12.4.0";
version = "12.4.1";
# Gitlab runner embeds some docker images these are prebuilt for arm and x86_64
docker_x86_64 = fetchurl {
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz";
sha256 = "0x0i60l8w3iwf7kn1wi8hh87cc3rvxixi2bizd5807aw22g9z5pd";
sha256 = "0y68x5hl2gip7bpcgjychf5qd1535ry4qkjb3fybm2pb81qy2gy7";
};

docker_arm = fetchurl {
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz";
sha256 = "1a2z2m4c2cixibjgh6xv9yi760n10v374nb9jl2pf62rlpqkwz83";
sha256 = "1nb0cspjqasyg7bppyrf3m3rg1c26iaw6h9dpnq2m7f60dciyiq2";
};
in
buildGoPackage rec {
@@ -29,7 +29,7 @@ buildGoPackage rec {
owner = "gitlab-org";
repo = "gitlab-runner";
rev = "v${version}";
sha256 = "0sdf3w5iq08dyhn2b9rz0sssxq4yfbki2z834z5l02wzjl8h2nk6";
sha256 = "1smn7b1dvqvaka23a7zhnlnpbqw40hpdn8vvj1r3ivx20khpsnhn";
};

patches = [ ./fix-shell-path.patch ];
8 changes: 5 additions & 3 deletions pkgs/development/tools/misc/terracognita/default.nix
Original file line number Diff line number Diff line change
@@ -2,16 +2,18 @@

buildGoModule rec {
pname = "terracognita";
version = "0.1.6";
version = "0.2.0";

src = fetchFromGitHub {
owner = "cycloidio";
repo = pname;
rev = "v${version}";
sha256 = "0ljh9dyn919k5f0yaca5an2vczj8cd5cb6qb4i5bdgmlh3wijiag";
sha256 = "06qw3mycgqkj2f5n6lm9xb2c21xjim2qlwizxsdc5hjrwbasl2q0";
};

modSha256 = "1ssz6rhdqma79x75qsxpa9is5zw1nlc0rv1h23dfsk8vla3p84ml";
modSha256 = "0sjs1dd8z8brxj5wwfrwimnlscy7i6flc4kq4576zwrcjg6pjvkr";

buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];

meta = with lib; {
description = "Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration";
10 changes: 7 additions & 3 deletions pkgs/development/web/cypress/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec{
pname = "cypress";
version = "3.4.1";
version = "3.5.0";

src = fetchzip {
url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip";
sha256 = "1gyl5c86gr5sv6z5rkg0afdxqrmsxmyrimm1p5q6jlrlyzki1bfs";
sha256 = "1w1nqa0j3bzjr000d4jlr34d1asdc1fv81pq831s3wl55hyqbij6";
};

# don't remove runtime deps
@@ -26,7 +26,11 @@ stdenv.mkDerivation rec{
mkdir -p $out/bin $out/opt/cypress
cp -vr * $out/opt/cypress/
# Let's create the file binary_state ourselves to make the npm package happy on initial verification.
echo '{"verified": true}' > $out/opt/cypress/binary_state.json
# Cypress now verifies version by reading bin/resources/app/package.json
mkdir -p $out/bin/resources/app
printf '{"version":"%b"}' $version > $out/bin/resources/app/package.json
# Cypress now looks for binary_state.json in bin
echo '{"verified": true}' > $out/bin/binary_state.json
ln -s $out/opt/cypress/Cypress $out/bin/Cypress
'';

29 changes: 20 additions & 9 deletions pkgs/misc/vim-plugins/generated.nix
Original file line number Diff line number Diff line change
@@ -92,6 +92,17 @@ let
};
};

antonys-macro-repeater = buildVimPluginFrom2Nix {
pname = "antonys-macro-repeater";
version = "2017-09-10";
src = fetchFromGitHub {
owner = "ckarnell";
repo = "antonys-macro-repeater";
rev = "61784d86b2654f3e261b9cc33360c5197704e266";
sha256 = "1cq5r091qbxjs9s12f7bb2fdm43gxwpnnh2l8nhj0n69jfk7gblw";
};
};

argtextobj-vim = buildVimPluginFrom2Nix {
pname = "argtextobj-vim";
version = "2010-10-18";
@@ -314,12 +325,12 @@ let

coc-git = buildVimPluginFrom2Nix {
pname = "coc-git";
version = "2019-10-29";
version = "2019-10-30";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-git";
rev = "0201d54ce81d31922553bfc289a77579648bb82c";
sha256 = "0in3k9dhf5sy9d2qawy31k91gljs2nd0gi2qzi1dh67acfbx3czx";
rev = "56d45aaef20356e750530f9f80c99cd2f9184ac1";
sha256 = "17rbrjp35jd6rw66js88qaki2hk0cm1bvylfzjngdbzbgjc1qz1h";
};
};

@@ -369,12 +380,12 @@ let

coc-java = buildVimPluginFrom2Nix {
pname = "coc-java";
version = "2019-09-17";
version = "2019-10-30";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc-java";
rev = "7e3bdee15b28f5d7f3b1654429c89cb0d93436e5";
sha256 = "0r17w00mbs1gshshm8c56cqi37z5i5vdk2sifs2clazlyn9rl6zm";
rev = "3195dd594389247e4bdb19d129e48846d9215f54";
sha256 = "1k354jh521fjm2xz05x1653g31bgmx3s0bpsraj516172k605qfr";
};
};

@@ -4097,12 +4108,12 @@ let

vim-ledger = buildVimPluginFrom2Nix {
pname = "vim-ledger";
version = "2019-10-26";
version = "2019-10-30";
src = fetchFromGitHub {
owner = "ledger";
repo = "vim-ledger";
rev = "e113a30ccca416fb8ae3f307e5f0d43a55e03597";
sha256 = "1sqgna0qnrqkll33x1waaaazqn2rwklccksm91zsd9k6p3q2hcgv";
rev = "66718caab97f13d25813f91b8352c9ac75b3771e";
sha256 = "0ia9r212019d8jqrbs3nrn36mpc09gc81gf4dnv3hksn6knpdr8b";
};
};

1 change: 1 addition & 0 deletions pkgs/misc/vim-plugins/vim-plugin-names
Original file line number Diff line number Diff line change
@@ -45,6 +45,7 @@ chrisgeo/sparkup
chriskempson/base16-vim
christoomey/vim-sort-motion
christoomey/vim-tmux-navigator
ckarnell/antonys-macro-repeater
cloudhead/neovim-fuzzy
CoatiSoftware/vim-sourcetrail
cocopon/iceberg.vim
11 changes: 5 additions & 6 deletions pkgs/os-specific/linux/dropwatch/default.nix
Original file line number Diff line number Diff line change
@@ -3,17 +3,16 @@

stdenv.mkDerivation rec {
pname = "dropwatch";
version = "1.5";
version = "1.5.1";

src = fetchFromGitHub {
owner = "nhorman";
repo = pname;
rev = version;
sha256 = "085hyyl28v0vpxfnmzchl97fjfnzj46ynhkg6y4i6h194y0d99m7";
rev = "v${version}";
sha256 = "1qmax0l7z1qik42c949fnvjh5r6awk4gpgzdsny8iwnmwzjyp8b8";
};

nativeBuildInputs = [ autoreconfHook pkgconfig ];

buildInputs = [ libbfd libnl ncurses readline zlib ];

# To avoid running into https://sourceware.org/bugzilla/show_bug.cgi?id=14243 we need to define:
@@ -25,8 +24,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Kernel dropped packet monitor";
homepage = https://github.com/nhorman/dropwatch;
description = "Linux kernel dropped packet monitor";
homepage = "https://github.com/nhorman/dropwatch";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.c0bw3b ];
33 changes: 33 additions & 0 deletions pkgs/os-specific/linux/trezor-udev-rules/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
pname = "trezor-udev-rules";
version = "unstable-2019-07-17";

udevRules = fetchurl {
# let's pin the latest commit in the repo which touched the udev rules file
url = "https://raw.githubusercontent.com/trezor/trezor-firmware/68a3094b0a8e36b588b1bcb58c34a2c9eafc0dca/common/udev/51-trezor.rules";
sha256 = "0vlxif89nsqpbnbz1vwfgpl1zayzmq87gw1snskn0qns6x2rpczk";
};

dontUnpack = true;

installPhase = ''
cp ${udevRules} 51-trezor.rules
mkdir -p $out/lib/udev/rules.d
# we use trezord group, not plugdev
# we don't need the udev-acl tag
substituteInPlace 51-trezor.rules \
--replace 'GROUP="plugdev"' 'GROUP="trezord"' \
--replace ', TAG+="udev-acl"' ""
cp 51-trezor.rules $out/lib/udev/rules.d/51-trezor.rules
'';

meta = with stdenv.lib; {
description = "Udev rules for Trezor";
license = licenses.gpl3;
maintainers = with maintainers; [ prusnak ];
platforms = platforms.linux;
homepage = "https://github.com/trezor/trezor-firmware/tree/master/common/udev";
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/monitoring/plugins/labs_consol_de.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ let
inherit pname version;

src = fetchurl {
url = "https://labs.consol.de/assets/downloads/nagios/${pname}-${version}.tar.bz";
url = "https://labs.consol.de/assets/downloads/nagios/${pname}-${version}.tar.gz";
inherit sha256;
};

4 changes: 3 additions & 1 deletion pkgs/servers/trezord/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, trezor-udev-rules }:

buildGoPackage rec {
pname = "trezord-go";
@@ -13,6 +13,8 @@ buildGoPackage rec {
sha256 = "00d90qmmk1pays78a2jm8gb7dncvlsjjn4033q1yd1ii3fxc6nh8";
};

propagatedBuildInputs = [ trezor-udev-rules ];

meta = with stdenv.lib; {
description = "TREZOR Communication Daemon aka TREZOR Bridge";
homepage = "https://trezor.io";
6 changes: 3 additions & 3 deletions pkgs/shells/zsh/oh-my-zsh/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@
{ stdenv, fetchgit }:

stdenv.mkDerivation rec {
version = "2019-10-27";
version = "2019-10-30";
pname = "oh-my-zsh";
rev = "e363109a6d3367d8be1dd66f05a38eb38b4257d7";
rev = "687c50bdf999f8efd45f3c8f578a62329b0633da";

src = fetchgit { inherit rev;
url = "https://github.com/robbyrussell/oh-my-zsh";
sha256 = "05ald17kr9bqx106a4cc5i48w8sf67vlghd96k2lciiwjy9dcdki";
sha256 = "13vflcqshvr323sdh4yrs4wlvbxhhc7ldhcyawcwassk44g2kx8w";
};

pathsToLink = [ "/share/oh-my-zsh" ];
6 changes: 3 additions & 3 deletions pkgs/tools/admin/procs/default.nix
Original file line number Diff line number Diff line change
@@ -4,16 +4,16 @@

rustPlatform.buildRustPackage rec {
pname = "procs";
version = "0.8.11";
version = "0.8.13";

src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
sha256 = "1bds84r5qw1chqd92rlijn4arqaywc5x4yjss3523ka55w3mphmf";
sha256 = "0yy41v2crds9500fa4r0kqiddciqkilr2h13nrjqy44ckvw2mi5y";
};

cargoSha256 = "11djms4rj3a1fs6f091gli32w6kww77n0072p0hwvqmc9yy1x57w";
cargoSha256 = "1gnl97h0l9k8xnrwl6807qlbx13vd45kmla02mk9p1h52sr0din5";

buildInputs = stdenv.lib.optional stdenv.isDarwin Security;

61 changes: 61 additions & 0 deletions pkgs/tools/filesystems/orangefs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{ stdenv, fetchurl, bison, flex, autoreconfHook
, openssl, db, attr, perl, tcsh
} :

stdenv.mkDerivation rec {
pname = "orangefs";
version = "2.9.7";

src = fetchurl {
url = "http://download.orangefs.org/current/source/orangefs-${version}.tar.gz";
sha256 = "15669f5rcvn44wkas0mld0qmyclrmhbrw4bbbp66sw3a12vgn4sm";
};

nativeBuildInputs = [ bison flex perl autoreconfHook ];
buildInputs = [ openssl db attr tcsh ];

postPatch = ''
# Issue introduced by attr-2.4.48
substituteInPlace src/apps/user/ofs_setdirhint.c --replace attr/xattr.h sys/xattr.h

# Do not try to install empty sysconfdir
substituteInPlace Makefile.in --replace 'install -d $(sysconfdir)' ""

# perl interpreter needs to be fixed or build fails
patchShebangs ./src/apps/admin/pvfs2-genconfig

# symlink points to a location in /usr
rm ./src/client/webpack/ltmain.sh
'';

configureFlags = [
"--sysconfdir=/etc/orangefs"
"--enable-shared"
"--enable-fast"
"--with-ssl=${stdenv.lib.getDev openssl}"
];


enableParallelBuilding = true;

postInstall = ''
# install useful helper scripts
install examples/keys/pvfs2-gen-keys.sh $out/bin
'';

postFixup = ''
for f in pvfs2-getmattr pvfs2-setmattr; do
substituteInPlace $out/bin/$f --replace '#!/bin/csh' '#!${tcsh}/bin/tcsh'
done

sed -i 's:openssl:${openssl}/bin/openssl:' $out/bin/pvfs2-gen-keys.sh
'';

meta = with stdenv.lib; {
description = "Scale-out network file system for use on high-end computing systems";
homepage = "http://www.orangefs.org/";
license = with licenses; [ asl20 bsd3 gpl2 lgpl21 lgpl21Plus openldap ];
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ markuskowa ];
};
}
16 changes: 13 additions & 3 deletions pkgs/tools/misc/scfbuild/default.nix
Original file line number Diff line number Diff line change
@@ -4,26 +4,36 @@ buildPythonApplication {
pname = "scfbuild";
version = "1.0.3";

format = "other";

src = fetchFromGitHub {
owner = "eosrei";
owner = "13rac1";
repo = "scfbuild";
rev = "9acc7fc5fedbf48683d8932dd5bd7583bf922bae";
sha256 = "1zlqsxkpg7zvmhdjgbqwwc9qgac2b8amzq8c5kwyh5cv95zcp6qn";
};

phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
patches = [
# Convert to Python 3
# https://github.com/13rac1/scfbuild/pull/19
./python-3.patch
];

propagatedBuildInputs = [ pyyaml fonttools fontforge ];

installPhase = ''
runHook preInstall

mkdir -p $out/${python.sitePackages}
cp -r scfbuild $out/${python.sitePackages}
cp -r bin $out

runHook postInstall
'';

meta = with lib; {
description = "SVGinOT color font builder";
homepage = https://github.com/eosrei/scfbuild;
homepage = https://github.com/13rac1/scfbuild;
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};
46 changes: 46 additions & 0 deletions pkgs/tools/misc/scfbuild/python-3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
--- a/bin/scfbuild
+++ b/bin/scfbuild
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from __future__ import (absolute_import, division, print_function,
--- a/scfbuild/builder.py
+++ b/scfbuild/builder.py
@@ -287,8 +287,8 @@ def _add_name_record(self, text, name_id, platform_id, plat_enc_id, lang_id):
# TODO: The installed version of fontTools doesn't have
# table__n_a_m_e.setName().
record = NameRecord()
- # PyYAML creates strings, force to Unicode
- record.string = unicode(text)
+ # PyYAML creates strings, which are unicode as of Python3
+ record.string = text
record.nameID = name_id
record.platformID = platform_id
record.platEncID = plat_enc_id
--- a/scfbuild/fforge.py
+++ b/scfbuild/fforge.py
@@ -84,7 +84,7 @@ def add_glyphs(font, svg_filepaths, conf):
u_ids = [int(u_id, 16) for u_id in filename.split("-")]
# Example: (0x1f441, 0x1f5e8)

- u_str = ''.join(map(unichr, u_ids))
+ u_str = ''.join(map(chr, u_ids))
# Example: "U\0001f441U\0001f5e8"

# Replace sequences with correct ZWJ/VS16 versions as needed
--- a/scfbuild/main.py
+++ b/scfbuild/main.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# SCFBuild is released under the GNU General Public License v3.
index 0000000..99418b5
--- /dev/null
+++ b/scfbuild/requirements.txt
@@ -0,0 +1,2 @@
+fonttools>=3.41.2
+PyYAML>=5.1
6 changes: 3 additions & 3 deletions pkgs/tools/package-management/cargo-audit/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ stdenv, lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-audit";
version = "0.9.3";
version = "0.10.0";

src = fetchFromGitHub {
owner = "RustSec";
repo = "cargo-audit";
rev = "v${version}";
sha256 = "0yd3qj475hh394f1ya0hwki3pbzkfyz5cssy28cq9bimibxhyfd8";
sha256 = "1977ykablfi4mc6j2iil0bxc6diy07vi5hm56xmqj3n37ziavf1m";
};

cargoSha256 = "0ba4xrjrh8cbi4pksax3gs7jaiw5mrb9hdrdwaghkikmiza1c08g";
cargoSha256 = "0zbnsq0cif0yppn8ygxhcsrshkbf1c801f8waqqb2d1rjsrhb93y";

buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config ];
23 changes: 14 additions & 9 deletions pkgs/tools/system/stress-ng/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{ stdenv, fetchurl
, attr, keyutils, libaio, libapparmor, libbsd, libcap, libgcrypt, lksctp-tools, zlib
, attr, judy, keyutils, libaio, libapparmor, libbsd, libcap, libgcrypt, lksctp-tools, zlib
}:

stdenv.mkDerivation rec {
pname = "stress-ng";
version = "0.10.05";
version = "0.10.08";

src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.xz";
sha256 = "0hkghs99fl8kzg3lkkd4w6cj5133zr9a415py0ng60kzrfffmgdy";
sha256 = "1kkmznn0y5wxi7x9nlhzyfy933bv66113in4rf0raw6brymympaa";
};

postPatch = ''
sed -i '/\#include <bsd\/string.h>/i #undef HAVE_STRLCAT\n#undef HAVE_STRLCPY' stress-ng.h
''; # needed because of Darwin patch on libbsd

# All platforms inputs then Linux-only ones
buildInputs = [ libbsd libgcrypt zlib ]
buildInputs = [ judy libbsd libgcrypt zlib ]
++ stdenv.lib.optionals stdenv.hostPlatform.isLinux [
attr keyutils libaio libapparmor libcap lksctp-tools
];

postPatch = ''
substituteInPlace Makefile --replace "/usr" ""
'';
makeFlags = [
"BINDIR=${placeholder "out"}/bin"
"MANDIR=${placeholder "out"}/share/man/man1"
"JOBDIR=${placeholder "out"}/share/stress-ng/example-jobs"
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
];

NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";

@@ -29,8 +36,6 @@ stdenv.mkDerivation rec {
# mystery, though. :-(
enableParallelBuilding = (!stdenv.isi686);

installFlags = [ "DESTDIR=${placeholder "out"}" ];

meta = with stdenv.lib; {
description = "Stress test a computer system";
longDescription = ''
14 changes: 13 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1427,6 +1427,8 @@ in

clipster = callPackage ../tools/misc/clipster { };

contrast = callPackage ../applications/accessibility/contrast { };

coprthr = callPackage ../development/libraries/coprthr { };

cplex = callPackage ../applications/science/math/cplex (config.cplex or {});
@@ -1610,6 +1612,8 @@ in

elm-github-install = callPackage ../tools/package-management/elm-github-install { };

elogind = callPackage ../applications/misc/elogind { };

enca = callPackage ../tools/text/enca { };

ent = callPackage ../tools/misc/ent { };
@@ -4596,6 +4600,8 @@ in

lftp = callPackage ../tools/networking/lftp { };

libck = callPackage ../development/libraries/libck { };

libconfig = callPackage ../development/libraries/libconfig { };

libcmis = callPackage ../development/libraries/libcmis { };
@@ -5387,6 +5393,8 @@ in

opn2bankeditor = callPackage ../tools/audio/opl3bankeditor/opn2bankeditor.nix { };

orangefs = callPackage ../tools/filesystems/orangefs { };

os-prober = callPackage ../tools/misc/os-prober {};

osl = callPackage ../development/compilers/osl { };
@@ -6111,7 +6119,7 @@ in
qtbase = qt4;
};

scfbuild = python2.pkgs.callPackage ../tools/misc/scfbuild { };
scfbuild = python3.pkgs.callPackage ../tools/misc/scfbuild { };

scriptaculous = callPackage ../development/libraries/scriptaculous { };

@@ -6659,6 +6667,8 @@ in

tpm2-tools = callPackage ../tools/security/tpm2-tools { };

trezor-udev-rules = callPackage ../os-specific/linux/trezor-udev-rules {};

trezord = callPackage ../servers/trezord { };

tthsum = callPackage ../applications/misc/tthsum { };
@@ -10897,6 +10907,8 @@ in
blas = if stdenv.isDarwin then blas else openblas;
};

forge = callPackage ../development/libraries/forge { };

linbox = callPackage ../development/libraries/linbox {
# We need to use blas instead of openblas on darwin, see
# https://github.com/NixOS/nixpkgs/pull/45013 and
21 changes: 21 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -715,6 +715,8 @@ in {
jwcrypto = callPackage ../development/python-modules/jwcrypto { };

kconfiglib = callPackage ../development/python-modules/kconfiglib { };

labelbox = callPackage ../development/python-modules/labelbox { };

lammps-cython = callPackage ../development/python-modules/lammps-cython {
mpi = pkgs.openmpi;
@@ -1982,6 +1984,8 @@ in {
pythonPackages = self;
});

opentracing = callPackage ../development/python-modules/opentracing { };

openidc-client = callPackage ../development/python-modules/openidc-client {};

optuna = callPackage ../development/python-modules/optuna { };
@@ -2569,6 +2573,23 @@ in {
inherit (pkgs) libsexy pkgconfig;
};

libselinux = pipe pkgs.libselinux [
toPythonModule

(p: p.overrideAttrs (super: {
meta = super.meta // {
outputsToInstall = [ "py" ];
};
}))

(p: p.override {
enablePython = true;
inherit python;
})

(p: p.py)
];

libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };

libthumbor = callPackage ../development/python-modules/libthumbor { };