Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c70840206ac1
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1459b34afa99
Choose a head ref

Commits on Feb 26, 2020

  1. python3Packages.ipykernel: fix build on darwin

    Also python34 is not supported:
    
    ipython/ipykernel@979e6fd
    
    nixpkgs doesn't provide python34 anymore, so pythonOlder "3.5" is always
    true and can be removed.
    veprbl committed Feb 26, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    d35009e View commit details

Commits on Mar 1, 2020

  1. iterm2: 3.0.14 -> 3.3.9 & fix build

    Thibault Gagnaux committed Mar 1, 2020
    Copy the full SHA
    917b088 View commit details
  2. Corrects comment: build-use-chroot is the same as sandbox.

    Thibault Gagnaux committed Mar 1, 2020
    Copy the full SHA
    655dff2 View commit details

Commits on Mar 2, 2020

  1. nixos/cage: init

    Add a cage module to nixos. This can be used to make kiosk-style
    systems that boot directly to a single application. The user (demo by
    default) is automatically logged in by this service and the
    program (xterm by default) is automatically started.
    
    This is useful for some embedded, single-user systems where we want
    automatic booting. To keep the system secure, the user should have
    limited privileges.
    
    Based on the service provided in the Cage wiki here:
    
    https://github.com/Hjdskes/cage/wiki/Starting-Cage-on-boot-with-systemd
    
    Co-Authored-By: Florian Klink <flokli@flokli.de>
    matthewbauer and flokli committed Mar 2, 2020
    Copy the full SHA
    e0e4d59 View commit details

Commits on Mar 3, 2020

  1. pythonPackages.digital-ocean: 1.13.2 -> 1.15.0

    updated to newest version (1.13.2 was released ~2.25 years ago). switched to fetchFromGitHub to enable tests. added kiwi to maintainers. formatted with nixpkgs-fmt
    Kiwi committed Mar 3, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    8653b7a View commit details
  2. Copy the full SHA
    017926a View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    2a52923 View commit details
  4. folks: Fix build

    This was missed in NixOS/nixpkgs#80594.
    
    Also re-enable tests.
    jtojnar committed Mar 3, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    54d984f View commit details
  5. folks: re-enable docs

    jtojnar committed Mar 3, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    4dc2771 View commit details
  6. tdlib: enable on darwin

    veprbl committed Mar 3, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    fa2546f View commit details
  7. Merge pull request #80940 from veprbl/pr/ipykernel_darwin_fix2

    python3Packages.ipykernel: fix build on darwin
    veprbl authored Mar 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    344d914 View commit details
  8. Merge pull request #81443 from tricktron/iterm2-fix

    iterm2: 3.0.14 -> 3.3.9 & fix build
    LnL7 authored Mar 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4c945ee View commit details
  9. python37Packages.asdf: 2.5.0 -> 2.5.2

    r-ryantm authored and FRidh committed Mar 3, 2020
    Copy the full SHA
    3a250de View commit details
  10. python3Packages.monosat: Fix hash

    PR #81562 inadvertently broke these builds
    acairncross authored and Jon committed Mar 3, 2020
    Copy the full SHA
    3db82f6 View commit details
  11. Copy the full SHA
    511ebca View commit details
  12. Merge pull request #81554 from ianmjones/snippetpixie-update-1.3.1

    snippetpixie: 1.2.2 -> 1.3.1
    worldofpeace authored Mar 3, 2020

    Verified

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

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e881138 View commit details
  14. Merge pull request #81327 from flokli/add-cage

    nixos/cage: init
    flokli authored Mar 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    407be0a View commit details
  15. Copy the full SHA
    7d8a200 View commit details
  16. gitaly: 1.83.0 -> 12.8.1

    In order to build gitaly, this locally overrides the version of
    libgit2, since gitaly is not compatible with the latest version.
    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    facef28 View commit details
  17. gitlab-workhorse: 8.20.0 -> 8.21.0

    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    f2bb523 View commit details
  18. gitlab-shell: Change name from gitlab-shell-go to gitlab-shell

    This is left over from when gitlab-shell had a ruby part and a go
    part. The ruby part is now gone, so let's call the go part
    gitlab-shell.
    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    a3b2828 View commit details
  19. gitaly: Add myself to maintainers

    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    17721d3 View commit details
  20. bundlerEnv: Add option to copy gem files instead of symlinking

    The way ruby loads gems and keeps track of their paths seems to not
    always work very well when the gems are accessed through
    symlinks. Ruby will then complain that the same files are loaded
    multiple times; it relies on the file's full path to determine whether
    the file is loaded or not.
    
    This adds an option to simply copy all gem files into the environment
    instead, which gets rid of this issue, but may instead result in major
    file duplication.
    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    affcf9b View commit details
  21. gitaly: Copy gem files into bundler env instead of symlinking

    This fixes issue #79374, where gitaly prints warning messages on the
    client side when running push or fetch.
    talyz authored and Milan committed Mar 3, 2020
    Copy the full SHA
    74769b6 View commit details
  22. Merge pull request #81616 from jtojnar/gom-update

    gom: 0.3.3 → 0.4
    worldofpeace authored Mar 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c5590dd View commit details
  23. Merge pull request #81217 from Kiwi/python-digitalocean-1.15.0

    pythonPackages.digital-ocean: 1.13.2 -> 1.15.0
    worldofpeace authored Mar 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    539706c View commit details
  24. netpbm: fix wrappers

    jtojnar committed Mar 3, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    1459b34 View commit details
Showing with 1,163 additions and 777 deletions.
  1. +1 −0 nixos/modules/module-list.nix
  2. +99 −0 nixos/modules/services/wayland/cage.nix
  3. +1 −0 nixos/tests/all-tests.nix
  4. +43 −0 nixos/tests/cage.nix
  5. +25 −8 pkgs/applications/misc/iterm2/default.nix
  6. +1 −1 pkgs/applications/science/logic/monosat/default.nix
  7. +6 −6 pkgs/applications/version-management/gitlab/data.json
  8. +2 −2 pkgs/applications/version-management/gitlab/gitaly/Gemfile
  9. +24 −22 pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
  10. +16 −5 pkgs/applications/version-management/gitlab/gitaly/default.nix
  11. +4 −4 pkgs/applications/version-management/gitlab/gitaly/deps.nix
  12. +41 −27 pkgs/applications/version-management/gitlab/gitaly/gemset.nix
  13. +1 −1 pkgs/applications/version-management/gitlab/gitlab-shell/default.nix
  14. +2 −2 pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
  15. +20 −14 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile
  16. +100 −78 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock
  17. +123 −90 pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix
  18. +512 −448 pkgs/applications/version-management/gitlab/yarnPkgs.nix
  19. +3 −3 pkgs/desktops/gnome-3/extensions/appindicator/default.nix
  20. +16 −5 pkgs/development/libraries/folks/default.nix
  21. +2 −13 pkgs/development/libraries/gom/default.nix
  22. +1 −1 pkgs/development/libraries/tdlib/default.nix
  23. +3 −3 pkgs/development/python-modules/asdf/default.nix
  24. +40 −10 pkgs/development/python-modules/digitalocean/default.nix
  25. +13 −3 pkgs/development/python-modules/ipykernel/default.nix
  26. +3 −3 pkgs/development/python-modules/tomlkit/default.nix
  27. +16 −2 pkgs/development/ruby-modules/bundled-common/default.nix
  28. +36 −21 pkgs/development/ruby-modules/bundler-env/default.nix
  29. +3 −3 pkgs/tools/graphics/netpbm/default.nix
  30. +6 −2 pkgs/tools/text/snippetpixie/default.nix
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -808,6 +808,7 @@
./services/ttys/agetty.nix
./services/ttys/gpm.nix
./services/ttys/kmscon.nix
./services/wayland/cage.nix
./services/web-apps/atlassian/confluence.nix
./services/web-apps/atlassian/crowd.nix
./services/web-apps/atlassian/jira.nix
99 changes: 99 additions & 0 deletions nixos/modules/services/wayland/cage.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{ config, pkgs, lib, ... }:

with lib;

let
cfg = config.services.cage;
in {
options.services.cage.enable = mkEnableOption "cage kiosk service";

options.services.cage.user = mkOption {
type = types.str;
default = "demo";
description = ''
User to log-in as.
'';
};

options.services.cage.extraArguments = mkOption {
type = types.listOf types.str;
default = [];
defaultText = "[]";
description = "Additional command line arguments to pass to Cage.";
example = ["-d"];
};

options.services.cage.program = mkOption {
type = types.path;
default = "${pkgs.xterm}/bin/xterm";
description = ''
Program to run in cage.
'';
};

config = mkIf cfg.enable {

# The service is partially based off of the one provided in the
# cage wiki at
# https://github.com/Hjdskes/cage/wiki/Starting-Cage-on-boot-with-systemd.
systemd.services."cage-tty1" = {
enable = true;
after = [
"systemd-user-sessions.service"
"plymouth-start.service"
"plymouth-quit.service"
"systemd-logind.service"
"getty@tty1.service"
];
before = [ "graphical.target" ];
wants = [ "dbus.socket" "systemd-logind.service" "plymouth-quit.service"];
wantedBy = [ "graphical.target" ];
conflicts = [ "getty@tty1.service" ];

restartIfChanged = false;
serviceConfig = {
ExecStart = ''
${pkgs.cage}/bin/cage \
${escapeShellArgs cfg.extraArguments} \
-- ${cfg.program}
'';
User = cfg.user;

ConditionPathExists = "/dev/tty1";
IgnoreSIGPIPE = "no";

# Log this user with utmp, letting it show up with commands 'w' and
# 'who'. This is needed since we replace (a)getty.
UtmpIdentifier = "%n";
UtmpMode = "user";
# A virtual terminal is needed.
TTYPath = "/dev/tty1";
TTYReset = "yes";
TTYVHangup = "yes";
TTYVTDisallocate = "yes";
# Fail to start if not controlling the virtual terminal.
StandardInput = "tty-fail";
StandardOutput = "syslog";
StandardError = "syslog";
# Set up a full (custom) user session for the user, required by Cage.
PAMName = "cage";
};
};

security.pam.services.cage.text = ''
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
session required ${pkgs.systemd}/lib/security/pam_systemd.so
'';

hardware.opengl.enable = mkDefault true;

systemd.targets.graphical.wants = [ "cage-tty1.service" ];

systemd.defaultUnit = "graphical.target";
};

meta.maintainers = with lib.maintainers; [ matthewbauer flokli ];

}
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ in
buildbot = handleTest ./buildbot.nix {};
caddy = handleTest ./caddy.nix {};
cadvisor = handleTestOn ["x86_64-linux"] ./cadvisor.nix {};
cage = handleTest ./cage.nix {};
cassandra = handleTest ./cassandra.nix {};
ceph-single-node = handleTestOn ["x86_64-linux"] ./ceph-single-node.nix {};
ceph-multi-node = handleTestOn ["x86_64-linux"] ./ceph-multi-node.nix {};
43 changes: 43 additions & 0 deletions nixos/tests/cage.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import ./make-test-python.nix ({ pkgs, ...} :

{
name = "cage";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ matthewbauer flokli ];
};

machine = { ... }:

{
imports = [ ./common/user-account.nix ];
services.cage = {
enable = true;
user = "alice";
program = "${pkgs.xterm}/bin/xterm -cm -pc"; # disable color and bold to make OCR easier
};

# this needs a fairly recent kernel, otherwise:
# [backend/drm/util.c:215] Unable to add DRM framebuffer: No such file or directory
# [backend/drm/legacy.c:15] Virtual-1: Failed to set CRTC: No such file or directory
# [backend/drm/util.c:215] Unable to add DRM framebuffer: No such file or directory
# [backend/drm/legacy.c:15] Virtual-1: Failed to set CRTC: No such file or directory
# [backend/drm/drm.c:618] Failed to initialize renderer on connector 'Virtual-1': initial page-flip failed
# [backend/drm/drm.c:701] Failed to initialize renderer for plane
boot.kernelPackages = pkgs.linuxPackages_latest;

virtualisation.memorySize = 1024;
};

enableOCR = true;

testScript = { nodes, ... }: let
user = nodes.machine.config.users.users.alice;
in ''
with subtest("Wait for cage to boot up"):
start_all()
machine.wait_for_file("/run/user/${toString user.uid}/wayland-0.lock")
machine.wait_until_succeeds("pgrep xterm")
machine.wait_for_text("alice@machine")
machine.screenshot("screen")
'';
})
33 changes: 25 additions & 8 deletions pkgs/applications/misc/iterm2/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
{ stdenv, fetchFromGitHub }:

/*
This derivation is impure: it relies on an Xcode toolchain being installed
and available in the expected place. The values of sandboxProfile
are copied pretty directly from the MacVim derivation, which
is also impure. In order to build you at least need the `sandbox`
option set to `relaxed` or `false`.
*/

stdenv.mkDerivation rec {
pname = "iterm2";
version = "3.0.14";
version = "3.3.9";

src = fetchFromGitHub {
owner = "gnachman";
repo = "iTerm2";
rev = "v${version}";
sha256 = "03m0ja11w9910z96yi8fzq3436y8xl14q031rdb2w3sapjd54qrj";
sha256 = "06mq3gfjgy8jw2f3fzdsi3pbfkdijfzzlhlw6ixa5bfb4hbcgn5j";
};

patches = [ ./disable_updates.patch ];
postPatch = ''
sed -i -e 's/CODE_SIGN_IDENTITY = "Developer ID Application"/CODE_SIGN_IDENTITY = ""/g' ./iTerm2.xcodeproj/project.pbxproj
'';

preConfigure = "LD=$CC";
makeFlagsArray = ["Deployment"];
makeFlagsArray = ["Nix"];
installPhase = ''
mkdir -p "$out/Applications"
mv "build/Deployment/iTerm2.app" "$out/Applications/iTerm.app"
mkdir -p $out/Applications
mv Build/Products/Deployment/iTerm2.app $out/Applications/iTerm.app
'';

sandboxProfile = ''
(allow file-read* file-write* process-exec mach-lookup)
; block homebrew dependencies
(deny file-read* file-write* process-exec mach-lookup (subpath "/usr/local") (with no-log))
'';

meta = {
meta = with stdenv.lib; {
description = "A replacement for Terminal and the successor to iTerm";
homepage = https://www.iterm2.com/;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.darwin;
license = licenses.gpl2;
maintainers = with maintainers; [ tricktron ];
platforms = platforms.darwin;
hydraPlatforms = [];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/science/logic/monosat/default.nix
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ let
# Python 3.8 compatibility
(fetchpatch {
url = https://github.com/sambayless/monosat/commit/a5079711d0df0451f9840f3a41248e56dbb03967.patch;
sha256 = "0fwsk67798dns7izdry19r7r3nmym4cbgxfpbjbnx4b4mlak65j8";
sha256 = "1p2y0jw8hb9c90nbffhn86k1dxd6f6hk5v70dfmpzka3y6g1ksal";
})
];

12 changes: 6 additions & 6 deletions pkgs/applications/version-management/gitlab/data.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "12.7.6",
"repo_hash": "092c6n2jg8himmcc23gh3gvmx0y272kwk00cj1s2k4b92dlzvm18",
"version": "12.8.1",
"repo_hash": "1h844a79scf3an5rv0wi332lrf7mv1zcv2mg6zllk82f7nf341gn",
"owner": "gitlab-org",
"repo": "gitlab",
"rev": "v12.7.6-ee",
"rev": "v12.8.1-ee",
"passthru": {
"GITALY_SERVER_VERSION": "1.83.0",
"GITLAB_PAGES_VERSION": "1.12.0",
"GITALY_SERVER_VERSION": "12.8.1",
"GITLAB_PAGES_VERSION": "1.16.0",
"GITLAB_SHELL_VERSION": "11.0.0",
"GITLAB_WORKHORSE_VERSION": "8.20.0"
"GITLAB_WORKHORSE_VERSION": "8.21.0"
}
}
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitlab/gitaly/Gemfile
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ gem 'bundler', '>= 1.17.3'
gem 'rugged', '~> 0.28'
gem 'github-linguist', '~> 7.5', require: 'linguist'
gem 'gitlab-markup', '~> 1.7.0'
gem 'activesupport', '~> 5.2.3'
gem 'activesupport', '6.0.2'
gem 'rdoc', '~> 6.0'
gem 'gitlab-gollum-lib', '~> 4.2.7.7', require: false
gem 'gitlab-gollum-rugged_adapter', '~> 0.4.4.2', require: false
@@ -16,7 +16,7 @@ gem 'faraday', '~> 0.12'
gem 'rbtrace', require: false

# Labkit provides observability functionality
gem 'gitlab-labkit', '~> 0.5.0'
gem 'gitlab-labkit', '~> 0.9.1'

# Detects the open source license the repository includes
# This version needs to be in sync with GitLab CE/EE
46 changes: 24 additions & 22 deletions pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -2,32 +2,33 @@ GEM
remote: https://rubygems.org/
specs:
abstract_type (0.0.7)
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
actionpack (6.0.2)
actionview (= 6.0.2)
activesupport (= 6.0.2)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.3)
activesupport (= 5.2.3)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.0.2)
activesupport (= 6.0.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activesupport (5.2.3)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (6.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
adamantium (0.2.0)
ice_nine (~> 0.11.0)
memoizable (~> 0.4.0)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
binding_ninja (0.2.3)
builder (3.2.3)
builder (3.2.4)
charlock_holmes (0.7.6)
coderay (1.1.2)
concord (0.1.5)
@@ -36,11 +37,11 @@ GEM
concurrent-ruby (1.1.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.5)
crass (1.0.6)
diff-lcs (1.3)
docile (1.3.2)
equalizer (0.0.11)
erubi (1.8.0)
erubi (1.9.0)
escape_utils (1.2.1)
factory_bot (5.0.2)
activesupport (>= 4.2.0)
@@ -71,9 +72,9 @@ GEM
diff-lcs (~> 1.1)
mime-types (>= 1.16)
posix-spawn (~> 0.3)
gitlab-labkit (0.5.2)
actionpack (~> 5)
activesupport (~> 5)
gitlab-labkit (0.9.1)
actionpack (>= 5.0.0, < 6.1.0)
activesupport (>= 5.0.0, < 6.1.0)
grpc (~> 1.19)
jaeger-client (~> 0.10)
opentracing (~> 0.4)
@@ -88,7 +89,7 @@ GEM
google-protobuf (~> 3.8)
googleapis-common-protos-types (~> 1.0)
hashdiff (0.3.9)
i18n (1.6.0)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
jaeger-client (0.10.0)
@@ -110,7 +111,7 @@ GEM
mime-types-data (3.2019.0331)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
minitest (5.14.0)
msgpack (1.3.1)
multipart-post (2.0.0)
nokogiri (1.10.7)
@@ -132,7 +133,7 @@ GEM
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.0.3)
rack (2.0.7)
rack (2.1.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
@@ -146,8 +147,8 @@ GEM
msgpack (>= 0.4.3)
optimist (>= 3.0.0)
rdoc (6.2.0)
redis (4.1.2)
rouge (3.11.0)
redis (4.1.3)
rouge (3.15.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
@@ -192,7 +193,7 @@ GEM
thread_safe (0.3.6)
thrift (0.11.0.0)
timecop (0.9.1)
tzinfo (1.2.5)
tzinfo (1.2.6)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)
unparser (0.4.5)
@@ -208,19 +209,20 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
zeitwerk (2.2.2)

PLATFORMS
ruby

DEPENDENCIES
activesupport (~> 5.2.3)
activesupport (= 6.0.2)
bundler (>= 1.17.3)
factory_bot
faraday (~> 0.12)
github-linguist (~> 7.5)
gitlab-gollum-lib (~> 4.2.7.7)
gitlab-gollum-rugged_adapter (~> 0.4.4.2)
gitlab-labkit (~> 0.5.0)
gitlab-labkit (~> 0.9.1)
gitlab-markup (~> 1.7.0)
google-protobuf (~> 3.8.0)
grpc (~> 1.24.0)
21 changes: 16 additions & 5 deletions pkgs/applications/version-management/gitlab/gitaly/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv, pkgconfig, libgit2 }:
{ stdenv, fetchFromGitLab, fetchFromGitHub, buildGoPackage, ruby,
bundlerEnv, pkgconfig, libgit2 }:

let
rubyEnv = bundlerEnv rec {
name = "gitaly-env";
inherit ruby;
copyGemFiles = true;
gemdir = ./.;
gemset =
let x = import (gemdir + "/gemset.nix");
@@ -16,15 +18,24 @@ let
};
};
};
libgit2_0_27 = libgit2.overrideAttrs (oldAttrs: rec {
version = "0.27.8";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "0wzx8nkyy9m7mx6cks58chjd4289vjsw97mxm9w6f1ggqsfnmbr9";
};
});
in buildGoPackage rec {
version = "1.83.0";
version = "12.8.1";
pname = "gitaly";

src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
sha256 = "1vwa38mhnxyncrrvp45d8s6fg94xaq8c71d7qh9ip77db0ak45kh";
sha256 = "0sjkh0j36dpakqmq7l5gd1ydmx1kxgij53bjvvn37r19liqdijnx";
};

# Fix a check which assumes that hook files are writeable by their
@@ -38,7 +49,7 @@ in buildGoPackage rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ rubyEnv.wrappedRuby libgit2 ];
buildInputs = [ rubyEnv.wrappedRuby libgit2_0_27 ];
goDeps = ./deps.nix;
preBuild = "rm -r go/src/gitlab.com/gitlab-org/labkit/vendor";

@@ -60,7 +71,7 @@ in buildGoPackage rec {
homepage = https://gitlab.com/gitlab-org/gitaly;
description = "A Git RPC service for handling all the git calls made by GitLab";
platforms = platforms.linux;
maintainers = with maintainers; [ roblabla globin fpletz ];
maintainers = with maintainers; [ roblabla globin fpletz talyz ];
license = licenses.mit;
};
}
8 changes: 4 additions & 4 deletions pkgs/applications/version-management/gitlab/gitaly/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 41 additions & 27 deletions pkgs/applications/version-management/gitlab/gitaly/gemset.nix
Original file line number Diff line number Diff line change
@@ -13,32 +13,32 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1s2iay17i2k0xx36cmnpbrmr5w6x70jk7fq1d8w70xcdw5chm0w1";
sha256 = "0zg96vjjw1kbli6nk6cyk64zfh4lgpl7fqx38ncbgfacl4dq7y0b";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
actionview = {
dependencies = ["activesupport" "builder" "erubi" "rails-dom-testing" "rails-html-sanitizer"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1v49rgf8305grqf6gq7qa47qhamr369igyy0giycz60x86afyr4h";
sha256 = "1bfh9z3n98c76c6jdp6avh75wsckxyp74r59hmgnqdhfznbkppv4";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
activesupport = {
dependencies = ["concurrent-ruby" "i18n" "minitest" "tzinfo"];
dependencies = ["concurrent-ruby" "i18n" "minitest" "tzinfo" "zeitwerk"];
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "110vp4frgkw3mpzlmshg2f2ig09cknls2w68ym1r1s39d01v0mi8";
sha256 = "1brlp5pmawb2hqdybjb732zxxkamcmis6px3wyh09rjlc0gqnzzz";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
adamantium = {
dependencies = ["ice_nine" "memoizable"];
@@ -83,10 +83,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1";
sha256 = "045wzckxpwcqzrjr353cxnyaxgf0qg22jh00dcx7z38cys5g1jlr";
type = "gem";
};
version = "3.2.3";
version = "3.2.4";
};
charlock_holmes = {
source = {
@@ -137,10 +137,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "030sc98kjrb36rh7g21qsbdfxrj6knsjkx0mn3b7gig8zknwhp2f";
sha256 = "0pfl5c0pyqaparxaqxi6s4gfl21bdldwiawrc0aknyvflli60lfw";
type = "gem";
};
version = "1.0.5";
version = "1.0.6";
};
diff-lcs = {
source = {
@@ -173,10 +173,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1";
sha256 = "1nwzxnqhr31fn7nbqmffcysvxjdfl3bhxi0bld5qqhcnfc1xd13x";
type = "gem";
};
version = "1.8.0";
version = "1.9.0";
};
escape_utils = {
source = {
@@ -283,10 +283,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1j06gl4ksd83rycg3fb46bb77iw74i1ivs5li6pyf5klrxjq8k3h";
sha256 = "1s1cgnnzlnfglsh5r0iihgvyasa2zbqkyrrnbxshvnkddb10i94z";
type = "gem";
};
version = "0.5.2";
version = "0.9.1";
};
gitlab-markup = {
groups = ["default"];
@@ -355,10 +355,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1hfxnlyr618s25xpafw9mypa82qppjccbh292c4l3bj36az7f6wl";
sha256 = "0jwrd1l4mxz06iyx6053lr6hz2zy7ah2k3ranfzisvych5q19kwm";
type = "gem";
};
version = "1.6.0";
version = "1.8.2";
};
ice_nine = {
source = {
@@ -482,12 +482,14 @@
version = "2.4.0";
};
minitest = {
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq";
sha256 = "0g73x65hmjph8dg1h3rkzfg7ys3ffxm35hj35grw75fixmq53qyz";
type = "gem";
};
version = "5.11.3";
version = "5.14.0";
};
msgpack = {
groups = ["default"];
@@ -613,10 +615,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0z90vflxbgjy2n84r7mbyax3i2vyvvrxxrf86ljzn5rw65jgnn2i";
sha256 = "04qa0ry26hxfwkmvhi0fjlvbm8irzg66ahnpx2pp3bl6qbdc0i8w";
type = "gem";
};
version = "2.0.7";
version = "2.1.2";
};
rack-test = {
dependencies = ["rack"];
@@ -683,20 +685,20 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1mymdx7s5sr4mablklaipz679ckczsiigswm1g2v5mc93yj5amw3";
sha256 = "08v2y91q1pmv12g9zsvwj66w3s8j9d82yrmxgyv4y4gz380j3wyh";
type = "gem";
};
version = "4.1.2";
version = "4.1.3";
};
rouge = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1zsyv6abqrk7lpql5f1ja4m88bfy9qndi8xykpss6cpvjdmi3ydb";
sha256 = "1ipgdir89a6pp1zscl2fkb99pppa7c513pk4wvis157bn8p9hlrx";
type = "gem";
};
version = "3.11.0";
version = "3.15.0";
};
rspec = {
dependencies = ["rspec-core" "rspec-expectations" "rspec-mocks"];
@@ -881,12 +883,14 @@
};
tzinfo = {
dependencies = ["thread_safe"];
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1fjx9j327xpkkdlxwmkl3a8wqj7i4l4jwlrv3z13mg95z9wl253z";
sha256 = "04f18jdv6z3zn3va50rqq35nj3izjpb72fnf21ixm7vanq6nc4fp";
type = "gem";
};
version = "1.2.5";
version = "1.2.6";
};
unicode-display_width = {
groups = ["default" "development" "test"];
@@ -926,4 +930,14 @@
};
version = "3.4.2";
};
zeitwerk = {
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0jywi63w1m2b2w9fj9rjb9n3imf6p5bfijfmml1xzdnsrdrjz0x1";
type = "gem";
};
version = "2.2.2";
};
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:

buildGoPackage rec {
pname = "gitlab-shell-go";
pname = "gitlab-shell";
version = "11.0.0";
src = fetchFromGitLab {
owner = "gitlab-org";
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
buildGoPackage rec {
pname = "gitlab-workhorse";

version = "8.20.0";
version = "8.21.0";

src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
sha256 = "0a64qrbyxvpqgf5ksczn3kisbhyx6fcw58g5nlag4jnjj6w5i0wr";
sha256 = "04vhshm9lwnx77q9l7znxwkvvwm3gxgxw12y1xwahfilj352xr7q";
};

goPackagePath = "gitlab.com/gitlab-org/gitlab-workhorse";
34 changes: 20 additions & 14 deletions pkgs/applications/version-management/gitlab/rubyEnv/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'rails', '5.2.3'
gem 'rails', '6.0.2'

gem 'bootsnap', '~> 1.4'

@@ -26,14 +26,14 @@ gem 'marginalia', '~> 1.8.0'

# Authentication libraries
gem 'devise', '~> 4.6'
gem 'doorkeeper', '~> 4.3'
gem 'doorkeeper-openid_connect', '~> 1.5'
gem 'doorkeeper', '~> 5.0.2'
gem 'doorkeeper-openid_connect', '~> 1.6.3'
gem 'omniauth', '~> 1.8'
gem 'omniauth-auth0', '~> 2.0.0'
gem 'omniauth-azure-oauth2', '~> 0.0.9'
gem 'omniauth-cas3', '~> 1.1.4'
gem 'omniauth-facebook', '~> 4.0.0'
gem 'omniauth-github', '~> 1.3'
gem 'omniauth-github', '~> 1.4'
gem 'omniauth-gitlab', '~> 1.0.2'
gem 'omniauth-google-oauth2', '~> 0.6.0'
gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
@@ -67,7 +67,7 @@ gem 'u2f', '~> 0.2.1'
gem 'validates_hostname', '~> 1.0.6'
gem 'rubyzip', '~> 2.0.0', require: 'zip'
# GitLab Pages letsencrypt support
gem 'acme-client', '~> 2.0.2'
gem 'acme-client', '~> 2.0.5'

# Browser detection
gem 'browser', '~> 2.5'
@@ -84,10 +84,10 @@ gem 'net-ldap'
# API
gem 'grape', '~> 1.1.0'
gem 'grape-entity', '~> 0.7.1'
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
gem 'rack-cors', '~> 1.0.6', require: 'rack/cors'

# GraphQL API
gem 'graphql', '~> 1.9.11'
gem 'graphql', '~> 1.9.12'
# NOTE: graphiql-rails v1.5+ doesn't work: https://gitlab.com/gitlab-org/gitlab/issues/31771
# TODO: remove app/views/graphiql/rails/editors/show.html.erb when https://github.com/rmosolgo/graphiql-rails/pull/71 is released:
# https://gitlab.com/gitlab-org/gitlab/issues/31747
@@ -149,7 +149,7 @@ gem 'wikicloth', '0.8.1'
gem 'asciidoctor', '~> 2.0.10'
gem 'asciidoctor-include-ext', '~> 0.3.1', require: false
gem 'asciidoctor-plantuml', '0.0.10'
gem 'rouge', '~> 3.11.0'
gem 'rouge', '~> 3.15.0'
gem 'truncato', '~> 0.7.11'
gem 'bootstrap_form', '~> 4.2.0'
gem 'nokogiri', '~> 1.10.5'
@@ -301,11 +301,11 @@ gem 'sentry-raven', '~> 2.9'
gem 'premailer-rails', '~> 1.10.3'

# LabKit: Tracing and Correlation
gem 'gitlab-labkit', '0.8.0'
gem 'gitlab-labkit', '0.9.1'

# I18n
gem 'ruby_parser', '~> 3.8', require: false
gem 'rails-i18n', '~> 5.1'
gem 'rails-i18n', '~> 6.0'
gem 'gettext_i18n_rails', '~> 1.8.0'
gem 'gettext_i18n_rails_js', '~> 1.3'
gem 'gettext', '~> 3.2.2', require: false, group: :development
@@ -349,7 +349,7 @@ end
group :development, :test do
gem 'bullet', '~> 6.0.2', require: !!ENV['ENABLE_BULLET']
gem 'pry-byebug', '~> 3.5.1', platform: :mri
gem 'pry-rails', '~> 0.3.4'
gem 'pry-rails', '~> 0.3.9'

gem 'awesome_print', require: false

@@ -381,8 +381,6 @@ group :development, :test do

gem 'knapsack', '~> 1.17'

gem 'stackprof', '~> 0.2.13', require: false

gem 'simple_po_parser', '~> 1.1.2', require: false

gem 'timecop', '~> 0.8.0'
@@ -427,6 +425,7 @@ gem 'email_reply_trimmer', '~> 0.1'
gem 'html2text'

gem 'ruby-prof', '~> 1.0.0'
gem 'stackprof', '~> 0.2.15', require: false
gem 'rbtrace', '~> 0.4', require: false
gem 'memory_profiler', '~> 0.9', require: false
gem 'benchmark-memory', '~> 0.1', require: false
@@ -456,7 +455,7 @@ group :ed25519 do
end

# Gitaly GRPC protocol definitions
gem 'gitaly', '~> 1.81.0'
gem 'gitaly', '~> 1.86.0'

gem 'grpc', '~> 1.24.0'

@@ -486,3 +485,10 @@ gem 'liquid', '~> 4.0'

# LRU cache
gem 'lru_redux'

gem 'erubi', '~> 1.9.0'

# Locked as long as quoted-printable encoding issues are not resolved
# Monkey-patched in `config/initializers/mail_encoding_patch.rb`
# See https://gitlab.com/gitlab-org/gitlab/issues/197386
gem 'mail', '= 2.7.1'
178 changes: 100 additions & 78 deletions pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock

Large diffs are not rendered by default.

213 changes: 123 additions & 90 deletions pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix

Large diffs are not rendered by default.

960 changes: 512 additions & 448 deletions pkgs/applications/version-management/gitlab/yarnPkgs.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/desktops/gnome-3/extensions/appindicator/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "gnome-shell-extension-appindicator";
version = "30";
version = "32";

src = fetchFromGitHub {
owner = "Ubuntu";
repo = "gnome-shell-extension-appindicator";
rev = "v${version}";
sha256 = "1fjhx23jqwv3d0smwhnjvc35gqhwk9p5f96ic22pfax653cn5vh8";
sha256 = "1qv9ll4iwkinwk5mf2jppj4fbk8rfncix6q4hhrwnqmhmsbiz6n2";
};

# This package has a Makefile, but it's used for building a zip for
@@ -29,6 +29,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
maintainers = with maintainers; [ jonafato ];
platforms = gnome3.gnome-shell.meta.platforms;
homepage = https://github.com/Ubuntu/gnome-shell-extension-appindicator;
homepage = "https://github.com/Ubuntu/gnome-shell-extension-appindicator";
};
}
21 changes: 16 additions & 5 deletions pkgs/development/libraries/folks/default.nix
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@
, python3
, readline
, gtk3
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
}:

# TODO: enable more folks backends
@@ -31,22 +34,24 @@ stdenv.mkDerivation rec {
pname = "folks";
version = "0.13.2";

outputs = [ "out" "dev" ];
outputs = [ "out" "dev" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0wq14yjs7m3axziy679a854vc7r7fj1l38p9jnyapb21vswdcqq2";
};

mesonFlags = [
# TODO: https://gitlab.gnome.org/GNOME/folks/issues/108
"-Ddocs=false"
"-Ddocs=true"
];

nativeBuildInputs = [
gettext
gobject-introspection
gtk3
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
meson
ninja
pkgconfig
@@ -75,10 +80,16 @@ stdenv.mkDerivation rec {

checkInputs = [
dbus
(python3.withPackages (pp: with pp; [
python-dbusmock
# The following possibly need to be propagated by dbusmock
# if they are not optional
dbus-python
pygobject3
]))
];

# TODO: enable tests
# doCheck = true;
doCheck = true;

postPatch = ''
chmod +x meson_post_install.py
15 changes: 2 additions & 13 deletions pkgs/development/libraries/gom/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, pkgconfig
@@ -14,26 +13,16 @@

stdenv.mkDerivation rec {
pname = "gom";
version = "0.3.3";
version = "0.4";

outputs = [ "out" "py" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1n1n226dyb3q98216aah87in9hhjcwsbpspsdqqfswz2bx5y6mxc";
sha256 = "aNCABqqjtYFpznzxg5SY9FaG+6gRXwms7Lidd+EBip0=";
};

patches = [
# Needed to apply the next patch
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gom/commit/e8b7c314ce61d459132cf03c9e455d2a01fdc6ea.patch";
sha256 = "0d7g3nm5lrfhfx9ly8qgf5bfp12kvr7m1xmlgin2q8vqpn0r2ggp";
})
# https://gitlab.gnome.org/GNOME/gom/merge_requests/3
(fetchpatch {
url = "https://gitlab.gnome.org/worldofpeace/gom/commit/b621c15600b1c32826c9878565eb2398a50907f2.patch";
sha256 = "1hqck9bb7sxn4akisnn26sbddlphjsavgksick5k4h3rsc0xwx1v";
})
./longer-stress-timeout.patch
];

2 changes: 1 addition & 1 deletion pkgs/development/libraries/tdlib/default.nix
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
description = "Cross-platform library for building Telegram clients";
homepage = "https://core.telegram.org/tdlib/";
license = [ licenses.boost ];
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.vyorkin ];
};
}
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/asdf/default.nix
Original file line number Diff line number Diff line change
@@ -15,12 +15,12 @@

buildPythonPackage rec {
pname = "asdf";
version = "2.5.0";
version = "2.5.2";
disabled = isPy27;

src = fetchPypi {
inherit pname version;
sha256 = "1qddczr5vhlbhmzmw6bwmkrvsj8dml76zf9gnk22qzab60ali99j";
sha256 = "0ai5l62ldaq1cqfmq3hvnzp8gp0hjjmjnck9d3cnx5r8la5ig18y";
};

postPatch = ''
@@ -50,7 +50,7 @@ buildPythonPackage rec {

meta = with lib; {
description = "Python tools to handle ASDF files";
homepage = https://github.com/spacetelescope/asdf;
homepage = "https://github.com/spacetelescope/asdf";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
50 changes: 40 additions & 10 deletions pkgs/development/python-modules/digitalocean/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,53 @@
{ stdenv, buildPythonPackage, fetchPypi, requests, jsonpickle }:
{ buildPythonPackage
, fetchFromGitHub
, fetchPypi
, isPy3k
, jsonpickle
, mock
, pytest
, pytestCheckHook
, requests
, responses
, stdenv
}:

buildPythonPackage rec {
pname = "python-digitalocean";
version = "1.13.2";
version = "1.15.0";

src = fetchPypi {
inherit pname version;
sha256 = "0h4drpdsmk0b3rlvg6q6cz11k23w0swj1iddk7xdcw4m7r7c52kw";
src = fetchFromGitHub {
owner = "koalalorenzo";
repo = "python-digitalocean";
rev = "v${version}";
sha256 = "1pz15mh72i992p63grwzqn2bbp6sm37zcp4f0fy1z7rsargwsbcz";
};

propagatedBuildInputs = [ requests jsonpickle ];
propagatedBuildInputs = [
jsonpickle
requests
];

# Package doesn't distribute tests.
doCheck = false;
dontUseSetuptoolsCheck = true;

checkInputs = [
pytest
pytestCheckHook
responses
] ++ stdenv.lib.optionals (!isPy3k) [
mock
];

preCheck = ''
cd digitalocean
'';

meta = with stdenv.lib; {
description = "digitalocean.com API to manage Droplets and Images";
homepage = https://pypi.python.org/pypi/python-digitalocean;
homepage = "https://pypi.python.org/pypi/python-digitalocean";
license = licenses.lgpl3;
maintainers = with maintainers; [ teh ];
maintainers = with maintainers; [
kiwi
teh
];
};
}
16 changes: 13 additions & 3 deletions pkgs/development/python-modules/ipykernel/default.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@
buildPythonPackage rec {
pname = "ipykernel";
version = "5.1.4";
disabled = pythonOlder "3.4";

src = fetchPypi {
inherit pname version;
@@ -38,12 +37,23 @@ buildPythonPackage rec {
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTests = lib.optionals stdenv.isDarwin [
disabledTests = lib.optionals stdenv.isDarwin ([
# see https://github.com/NixOS/nixpkgs/issues/76197
"test_subprocess_print"
"test_subprocess_error"
"test_ipython_start_kernel_no_userns"
];
] ++ lib.optionals (pythonOlder "3.8") [
# flaky test https://github.com/ipython/ipykernel/issues/485
"test_shutdown"

# test regression https://github.com/ipython/ipykernel/issues/486
"test_sys_path_profile_dir"
"test_save_history"
"test_help_output"
"test_write_kernel_spec"
"test_ipython_start_kernel_userns"
"ZMQDisplayPublisherTests"
]);

# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/tomlkit/default.nix
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@

buildPythonPackage rec {
pname = "tomlkit";
version = "0.5.8";
version = "0.5.11";

src = fetchPypi {
inherit pname version;
sha256 = "32c10cc16ded7e4101c79f269910658cc2a0be5913f1252121c3cd603051c269";
sha256 = "1kq1663iqxgwrmb883n55ypi5axnixla2hrby9g2x227asifsi7h";
};

propagatedBuildInputs =
@@ -21,7 +21,7 @@ buildPythonPackage rec {
doCheck = false;

meta = with lib; {
homepage = https://github.com/sdispater/tomlkit;
homepage = "https://github.com/sdispater/tomlkit";
description = "Style-preserving TOML library for Python";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
18 changes: 16 additions & 2 deletions pkgs/development/ruby-modules/bundled-common/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, runCommand, ruby, lib
{ stdenv, runCommand, ruby, lib, rsync
, defaultGemConfig, buildRubyGem, buildEnv
, makeWrapper
, bundler
@@ -13,6 +13,7 @@
, lockfile ? null
, gemset ? null
, ruby ? defs.ruby
, copyGemFiles ? false # Copy gem files instead of symlinking
, gemConfig ? defaultGemConfig
, postBuild ? null
, document ? []
@@ -96,7 +97,8 @@ let

envPaths = lib.attrValues gems ++ lib.optional (!hasBundler) bundler;

basicEnv = buildEnv {

basicEnvArgs = {
inherit buildInputs ignoreCollisions;

name = name';
@@ -154,5 +156,17 @@ let
};
};
};

basicEnv =
if copyGemFiles then
runCommand name' basicEnvArgs ''
mkdir -p $out
for i in $paths; do
${rsync}/bin/rsync -a $i/lib $out/
done
eval "$postBuild"
''
else
buildEnv basicEnvArgs;
in
basicEnv
57 changes: 36 additions & 21 deletions pkgs/development/ruby-modules/bundler-env/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ ruby, lib, callPackage, defaultGemConfig, buildEnv, bundler }@defs:
{ ruby, lib, callPackage, defaultGemConfig, buildEnv, runCommand
, bundler, rsync
}@defs:

{ name ? null
, pname ? null
@@ -8,6 +10,7 @@
, gemset ? null
, groups ? ["default"]
, ruby ? defs.ruby
, copyGemFiles ? false # Copy gem files instead of symlinking
, gemConfig ? defaultGemConfig
, postBuild ? null
, document ? []
@@ -38,23 +41,35 @@ in
if pname == null then
basicEnv // { inherit name basicEnv; }
else
(buildEnv {
inherit ignoreCollisions;

name = basicEnv.name;

paths = envPaths;
pathsToLink = [ "/lib" ];

postBuild = genStubsScript {
inherit lib ruby bundler groups;
confFiles = basicEnv.confFiles;
binPaths = [ basicEnv.gems.${pname} ];
} + lib.optionalString (postBuild != null) postBuild;

meta = { platforms = ruby.meta.platforms; } // meta;
passthru = basicEnv.passthru // {
inherit basicEnv;
inherit (basicEnv) env;
} // passthru;
})
let
bundlerEnvArgs = {
inherit ignoreCollisions;

name = basicEnv.name;

paths = envPaths;
pathsToLink = [ "/lib" ];

postBuild = genStubsScript {
inherit lib ruby bundler groups;
confFiles = basicEnv.confFiles;
binPaths = [ basicEnv.gems.${pname} ];
} + lib.optionalString (postBuild != null) postBuild;

meta = { platforms = ruby.meta.platforms; } // meta;
passthru = basicEnv.passthru // {
inherit basicEnv;
inherit (basicEnv) env;
} // passthru;
};
in
if copyGemFiles then
runCommand basicEnv.name bundlerEnvArgs ''
mkdir -p $out
for i in $paths; do
${rsync}/bin/rsync -a $i/lib $out/
done
eval "$postBuild"
''
else
buildEnv bundlerEnvArgs
6 changes: 3 additions & 3 deletions pkgs/tools/graphics/netpbm/default.nix
Original file line number Diff line number Diff line change
@@ -84,13 +84,13 @@ stdenv.mkDerivation {
mkdir -p $out/share/netpbm
mv $out/misc $out/share/netpbm/
moveToOutput bin "''${!outputBin}"
# wrap any scripts that expect other programs in the package to be in their PATH
for prog in ppmquant; do
wrapProgram "$out/bin/$prog" --prefix PATH : "$out/bin"
wrapProgram "''${!outputBin}/bin/$prog" --prefix PATH : "''${!outputBin}/bin"
done
moveToOutput bin "''${!outputBin}"
runHook postInstall
'';

8 changes: 6 additions & 2 deletions pkgs/tools/text/snippetpixie/default.nix
Original file line number Diff line number Diff line change
@@ -18,17 +18,19 @@
, ibus
, json-glib
, pantheon
, libwnck3
, xorg
}:

stdenv.mkDerivation rec {
pname = "snippetpixie";
version = "1.2.2";
version = "1.3.1";

src = fetchFromGitHub {
owner = "bytepixie";
repo = pname;
rev = version;
sha256 = "096xj7n1ypr8ss8mbwd1hyypvmzw5lc0hjlj2d1x8hbjljldfd13";
sha256 = "0cnx7snw3h7p77fhihvqxb6bgg4s2ffvjr8nbymb4bnqlg2a7v97";
};

nativeBuildInputs = [
@@ -52,6 +54,8 @@ stdenv.mkDerivation rec {
dbus
ibus
json-glib
libwnck3
xorg.libXtst
pantheon.granite
pantheon.elementary-gtk-theme
pantheon.elementary-icon-theme