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: c2742295fb1f
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: 9defd3e3e39f
Choose a head ref

Commits on May 24, 2019

  1. Copy the full SHA
    62a8927 View commit details

Commits on Jul 26, 2019

  1. Copy the full SHA
    e309ddb View commit details

Commits on Jul 28, 2019

  1. way-cooler: fix eval

    FRidh committed Jul 28, 2019
    Copy the full SHA
    802f51b View commit details
  2. Copy the full SHA
    507dfa0 View commit details

Commits on Jul 29, 2019

  1. cargo: remove darwin hack

    This seems to have recently resolved itself with updates
    and is no longer necessary.
    arcnmx authored and Mic92 committed Jul 29, 2019
    Copy the full SHA
    b53e237 View commit details

Commits on Jul 30, 2019

  1. Copy the full SHA
    626ccd7 View commit details
  2. buildRustPackage: Remove unneeded cat

    AtkinsChang authored and Mic92 committed Jul 30, 2019
    Copy the full SHA
    fb961d1 View commit details
  3. libuchardet: remove unneeded CMake flags

    Not necessary since NixOS/nixpkgs#52856
    jtojnar committed Jul 30, 2019
    Copy the full SHA
    652e858 View commit details
  4. Copy the full SHA
    51dc2cd View commit details
  5. Merge pull request #65392 from primeos/scons

    scons: 3.0.5 -> 3.1.0
    primeos authored Jul 30, 2019
    Copy the full SHA
    511c57a View commit details
  6. libjpeg_turbo: remove unneeded CMake flags

    Not necessary since NixOS/nixpkgs#52856
    jtojnar committed Jul 30, 2019
    Copy the full SHA
    0568b62 View commit details
  7. openimageio2: remove unneeded CMake flags

    Not necessary since NixOS/nixpkgs#52856
    jtojnar committed Jul 30, 2019
    Copy the full SHA
    2e11dca View commit details
  8. openimageio: remove unneeded CMake flags

    Not necessary since NixOS/nixpkgs#52856
    jtojnar committed Jul 30, 2019
    Copy the full SHA
    6928f1e View commit details
  9. shaderc: remove unneeded CMake flags

    Not necessary since NixOS/nixpkgs#52856
    
    Parallel building is enabled by default with CMake.
    jtojnar committed Jul 30, 2019
    Copy the full SHA
    9aa10f0 View commit details

Commits on Jul 31, 2019

  1. Copy the full SHA
    ed50ec8 View commit details
  2. Copy the full SHA
    fb96e45 View commit details
  3. Copy the full SHA
    4d0bff9 View commit details
  4. Copy the full SHA
    6cb99e7 View commit details
  5. [cpan2nix] perlPackages.Catmandu: init at 1.2002

    dependencies:
    perlPackages.AnyURIEscape: init at 0.01
    perlPackages.ConfigOnion: init at 1.007
    perlPackages.DataUtil: init at 0.66
    perlPackages.DispatchClass: init at 0.02
    perlPackages.LogAnyAdapterLog4perl: init at 0.09
    perlPackages.MooXAliases: init at 0.001006
    perlPackages.ParserMGC: init at 0.16
    perlPackages.PathIteratorRule: init at 1.014
    perlPackages.TestFilename: init at 0.03
    perlPackages.TestLWPUserAgent: init at 0.033
    perlPackages.TextHogan: init at 2.02
    perlPackages.TryTinyByClass: init at 0.01
    perlPackages.URITemplate: init at 0.24
    volth committed Jul 31, 2019
    Copy the full SHA
    8e9ec74 View commit details
  6. perlPackages.vidir: 0.040 -> 0.042

    volth committed Jul 31, 2019
    Copy the full SHA
    cbba47e View commit details
  7. [cpan2nix] perlPackages.CatalystPluginSmartURI: init at 0.041

    dependencies:
    perlPackages.TimeOut: init at 0.11
    perlPackages.URISmartURI: init at 0.032
    volth committed Jul 31, 2019
    Copy the full SHA
    ad898b7 View commit details
  8. [cpan2nix] perlPackages.XMLSAX: 1.00 -> 1.02

    volth committed Jul 31, 2019
    Copy the full SHA
    86ba870 View commit details
  9. Copy the full SHA
    7a49463 View commit details
  10. Copy the full SHA
    48fce19 View commit details
  11. Copy the full SHA
    3079c8f View commit details
  12. Copy the full SHA
    464e6d5 View commit details
  13. Copy the full SHA
    6e988d4 View commit details
  14. Copy the full SHA
    4f74265 View commit details
  15. [cpan2nix] perlPackages.CryptRijndael: cleanup

    volth committed Jul 31, 2019
    Copy the full SHA
    5778ee5 View commit details
  16. [cpan2nix] perlPackages.CryptX: 0.063 -> 0.064

    volth committed Jul 31, 2019
    Copy the full SHA
    1727d8f View commit details
  17. Copy the full SHA
    fa68934 View commit details
  18. Copy the full SHA
    eb7de69 View commit details
  19. Copy the full SHA
    a1e5379 View commit details
  20. [cpan2nix] perlPackages.JSONPP: 4.02 -> 4.04

    volth committed Jul 31, 2019
    Copy the full SHA
    fdefdf1 View commit details
  21. Copy the full SHA
    f859577 View commit details
  22. [cpan2nix] perlPackages.MCE: 1.838 -> 1.841

    volth committed Jul 31, 2019
    Copy the full SHA
    0b11f73 View commit details
  23. Copy the full SHA
    fc60843 View commit details
  24. Copy the full SHA
    74efe69 View commit details
  25. Copy the full SHA
    0a994b8 View commit details
  26. Copy the full SHA
    cb41ee0 View commit details
  27. Copy the full SHA
    db111b6 View commit details
  28. Copy the full SHA
    922cbbe View commit details
  29. Copy the full SHA
    b54ddca View commit details
  30. Copy the full SHA
    614921a View commit details
  31. [cpan2nix] perlPackages.Storable: 3.11 -> 3.15

    volth committed Jul 31, 2019
    Copy the full SHA
    c323f84 View commit details
  32. Copy the full SHA
    960dfde View commit details
  33. Copy the full SHA
    e226b53 View commit details
  34. [cpan2nix] perlPackages.TextCSV: 1.99 -> 2.00

    volth committed Jul 31, 2019
    Copy the full SHA
    b7a1372 View commit details
  35. Copy the full SHA
    6b21d2e View commit details
  36. Copy the full SHA
    5666823 View commit details
Showing with 1,856 additions and 619 deletions.
  1. +1 −0 nixos/modules/rename.nix
  2. +11 −0 nixos/modules/services/desktops/flatpak.nix
  3. +3 −5 nixos/modules/system/boot/stage-1.nix
  4. +23 −15 nixos/modules/system/boot/systemd.nix
  5. +0 −1 nixos/modules/tasks/filesystems/nfs.nix
  6. +2 −41 nixos/modules/tasks/swraid.nix
  7. +25 −2 nixos/tests/systemd.nix
  8. +3 −3 pkgs/applications/altcoins/parity/beta.nix
  9. +3 −3 pkgs/applications/altcoins/parity/default.nix
  10. +6 −4 pkgs/applications/altcoins/parity/parity.nix
  11. +0 −2 pkgs/applications/graphics/openimageio/2.x.nix
  12. +0 −2 pkgs/applications/graphics/openimageio/default.nix
  13. +2 −2 pkgs/applications/misc/calibre/default.nix
  14. +3 −3 pkgs/applications/networking/browsers/elinks/default.nix
  15. +9 −6 pkgs/applications/science/logic/tlaplus/toolbox.nix
  16. +7 −9 pkgs/build-support/rust/default.nix
  17. +2 −2 pkgs/data/misc/iana-etc/default.nix
  18. +0 −7 pkgs/development/compilers/rust/cargo.nix
  19. +2 −6 pkgs/development/compilers/rust/rustc.nix
  20. +0 −4 pkgs/development/compilers/shaderc/default.nix
  21. +15 −4 pkgs/development/interpreters/spidermonkey/38.nix
  22. +13 −2 pkgs/development/interpreters/spidermonkey/60.nix
  23. +2 −2 pkgs/development/libraries/armadillo/default.nix
  24. +2 −2 pkgs/development/libraries/cimg/default.nix
  25. +2 −2 pkgs/development/libraries/flatpak/bubblewrap-paths.patch
  26. +4 −4 pkgs/development/libraries/flatpak/default.nix
  27. +4 −2 pkgs/development/libraries/flatpak/fix-paths.patch
  28. +18 −11 pkgs/development/libraries/flatpak/fix-test-paths.patch
  29. +3 −1 pkgs/development/libraries/flatpak/respect-xml-catalog-files-var.patch
  30. +3 −1 pkgs/development/libraries/flatpak/unset-env-vars.patch
  31. +12 −10 pkgs/development/libraries/flatpak/use-flatpak-from-path.patch
  32. +2 −2 pkgs/development/libraries/flatpak/validate-icon-pixbuf.patch
  33. +2 −2 pkgs/development/libraries/gnutls/default.nix
  34. +3 −1 pkgs/development/libraries/libjpeg-turbo/default.nix
  35. +21 −0 pkgs/development/libraries/libmodulemd/1.nix
  36. +59 −0 pkgs/development/libraries/libmodulemd/default.nix
  37. +29 −0 pkgs/development/libraries/libmodulemd/dont-check-docs.patch
  38. +45 −0 pkgs/development/libraries/libmodulemd/pygobject-dir.patch
  39. +0 −3 pkgs/development/libraries/libuchardet/default.nix
  40. +3 −4 pkgs/development/libraries/qt-5/5.11/default.nix
  41. +3 −4 pkgs/development/libraries/qt-5/5.12/default.nix
  42. +3 −4 pkgs/development/libraries/qt-5/5.6/default.nix
  43. +3 −4 pkgs/development/libraries/qt-5/5.9/default.nix
  44. +26 −5 pkgs/development/libraries/xdg-desktop-portal-gtk/default.nix
  45. +4 −4 pkgs/development/libraries/xdg-desktop-portal/default.nix
  46. +11 −9 pkgs/development/libraries/xdg-desktop-portal/respect-path-env-var.patch
  47. +10 −8 pkgs/development/ocaml-modules/ocsigen-start/default.nix
  48. +2 −2 pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix
  49. +31 −0 pkgs/development/python-modules/hocr-tools/default.nix
  50. +21 −0 pkgs/development/python-modules/kconfiglib/default.nix
  51. +73 −0 pkgs/development/python-modules/pikepdf/default.nix
  52. +35 −0 pkgs/development/python-modules/pytest-helpers-namespace/default.nix
  53. +44 −0 pkgs/development/python-modules/python-xmp-toolkit/default.nix
  54. +53 −0 pkgs/development/python-modules/ruffus/default.nix
  55. +7 −5 pkgs/development/python-modules/simplejson/default.nix
  56. +2 −2 pkgs/development/tools/build-managers/scons/default.nix
  57. +8 −9 pkgs/development/tools/misc/libtool/libtool2.nix
  58. +2 −2 pkgs/os-specific/linux/conky/default.nix
  59. +18 −7 pkgs/os-specific/linux/mdadm/default.nix
  60. +2 −2 pkgs/os-specific/linux/systemd/default.nix
  61. +2 −2 pkgs/servers/mediatomb/default.nix
  62. +2 −2 pkgs/tools/misc/chafa/default.nix
  63. +271 −0 pkgs/tools/misc/ostree/01-Drop-ostree-trivial-httpd-CLI-move-to-tests-director.patch
  64. +3 −6 pkgs/tools/misc/ostree/default.nix
  65. +6 −6 pkgs/tools/misc/ostree/disable-test-gpg-verify-result.patch
  66. +64 −23 pkgs/tools/misc/ostree/fix-1592.patch
  67. +5 −3 pkgs/tools/misc/rpm-ostree/default.nix
  68. +4 −2 pkgs/tools/networking/network-manager/default.nix
  69. +2 −2 pkgs/tools/security/ccid/default.nix
  70. +103 −0 pkgs/tools/text/ocrmypdf/default.nix
  71. +1 −1 pkgs/tools/typesetting/tex/texlive/default.nix
  72. +7 −0 pkgs/top-level/all-packages.nix
  73. +672 −335 pkgs/top-level/perl-packages.nix
  74. +12 −0 pkgs/top-level/python-packages.nix
1 change: 1 addition & 0 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
@@ -225,6 +225,7 @@ with lib;
(mkRemovedOptionModule [ "services" "mysql" "pidDir" ] "Don't wait for pidfiles, describe dependencies through systemd")
(mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.")
(mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.")
(mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.")

# ZSH
(mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
11 changes: 11 additions & 0 deletions nixos/modules/services/desktops/flatpak.nix
Original file line number Diff line number Diff line change
@@ -38,5 +38,16 @@ in {
"$HOME/.local/share/flatpak/exports"
"/var/lib/flatpak/exports"
];

# It has been possible since https://github.com/flatpak/flatpak/releases/tag/1.3.2
# to build a SELinux policy module.

users.users.flatpak = {
description = "Flatpak system helper";
group = "flatpak";
isSystemUser = true;
};

users.groups.flatpak = { };
};
}
8 changes: 3 additions & 5 deletions nixos/modules/system/boot/stage-1.nix
Original file line number Diff line number Diff line change
@@ -217,13 +217,11 @@ let
--replace ata_id ${extraUtils}/bin/ata_id \
--replace scsi_id ${extraUtils}/bin/scsi_id \
--replace cdrom_id ${extraUtils}/bin/cdrom_id \
--replace ${pkgs.utillinux}/sbin/blkid ${extraUtils}/bin/blkid \
--replace /sbin/blkid ${extraUtils}/bin/blkid \
--replace ${pkgs.coreutils}/bin/basename ${extraUtils}/bin/basename \
--replace ${pkgs.utillinux}/bin/blkid ${extraUtils}/bin/blkid \
--replace ${pkgs.lvm2}/sbin ${extraUtils}/bin \
--replace /sbin/mdadm ${extraUtils}/bin/mdadm \
--replace ${pkgs.mdadm}/sbin ${extraUtils}/sbin \
--replace ${pkgs.bash}/bin/sh ${extraUtils}/bin/sh \
--replace /usr/bin/readlink ${extraUtils}/bin/readlink \
--replace /usr/bin/basename ${extraUtils}/bin/basename \
--replace ${udev}/bin/udevadm ${extraUtils}/bin/udevadm
done
38 changes: 23 additions & 15 deletions nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
@@ -427,7 +427,8 @@ in
systemd.packages = mkOption {
default = [];
type = types.listOf types.package;
description = "Packages providing systemd units.";
example = literalExample "[ pkgs.systemd-cryptsetup-generator ]";
description = "Packages providing systemd units and hooks.";
};

systemd.targets = mkOption {
@@ -497,11 +498,14 @@ in
'';
};

systemd.generator-packages = mkOption {
default = [];
type = types.listOf types.package;
example = literalExample "[ pkgs.systemd-cryptsetup-generator ]";
description = "Packages providing systemd generators.";
systemd.shutdown = mkOption {
type = types.attrsOf types.path;
default = {};
description = ''
Definition of systemd shutdown executables.
For each <literal>NAME = VALUE</literal> pair of the attrSet, a link is generated from
<literal>/etc/systemd/system-shutdown/NAME</literal> to <literal>VALUE</literal>.
'';
};

systemd.defaultUnit = mkOption {
@@ -761,18 +765,21 @@ in
environment.systemPackages = [ systemd ];

environment.etc = let
# generate contents for /etc/systemd/system-generators from
# systemd.generators and systemd.generator-packages
generators = pkgs.runCommand "system-generators" {
# generate contents for /etc/systemd/system-${type} from attrset of links and packages
hooks = type: links: pkgs.runCommand "system-${type}" {
preferLocalBuild = true;
packages = cfg.generator-packages;
} ''
packages = cfg.packages;
} ''
set -e
mkdir -p $out
for package in $packages
do
ln -s $package/lib/systemd/system-generators/* $out/
done;
${concatStrings (mapAttrsToList (generator: target: "ln -s ${target} $out/${generator};\n") cfg.generators)}
for hook in $package/lib/systemd/system-${type}/*
do
ln -s $hook $out/
done
done
${concatStrings (mapAttrsToList (exec: target: "ln -s ${target} $out/${exec};\n") links)}
'';
in ({
"systemd/system".source = generateUnits "system" cfg.units upstreamSystemUnits upstreamSystemWants;
@@ -834,7 +841,8 @@ in
${concatStringsSep "\n" cfg.tmpfiles.rules}
'';

"systemd/system-generators" = { source = generators; };
"systemd/system-generators" = { source = hooks "generators" cfg.generators; };
"systemd/system-shutdown" = { source = hooks "shutdown" cfg.shutdown; };
});

services.dbus.enable = true;
1 change: 0 additions & 1 deletion nixos/modules/tasks/filesystems/nfs.nix
Original file line number Diff line number Diff line change
@@ -56,7 +56,6 @@ in
boot.initrd.kernelModules = mkIf inInitrd [ "nfs" ];

systemd.packages = [ pkgs.nfs-utils ];
systemd.generator-packages = [ pkgs.nfs-utils ];

environment.etc = {
"idmapd.conf".source = idmapdConfFile;
43 changes: 2 additions & 41 deletions nixos/modules/tasks/swraid.nix
Original file line number Diff line number Diff line change
@@ -6,51 +6,12 @@

services.udev.packages = [ pkgs.mdadm ];

systemd.packages = [ pkgs.mdadm ];

boot.initrd.availableKernelModules = [ "md_mod" "raid0" "raid1" "raid10" "raid456" ];

boot.initrd.extraUdevRulesCommands = ''
cp -v ${pkgs.mdadm}/lib/udev/rules.d/*.rules $out/
'';

systemd.services.mdadm-shutdown = {
wantedBy = [ "final.target"];
after = [ "umount.target" ];

unitConfig = {
DefaultDependencies = false;
};

serviceConfig = {
Type = "oneshot";
ExecStart = ''${pkgs.mdadm}/bin/mdadm --wait-clean --scan'';
};
};

systemd.services."mdmon@" = {
description = "MD Metadata Monitor on /dev/%I";

unitConfig.DefaultDependencies = false;

serviceConfig = {
Type = "forking";
Environment = "IMSM_NO_PLATFORM=1";
ExecStart = ''${pkgs.mdadm}/bin/mdmon --offroot --takeover %I'';
KillMode = "none";
};
};

systemd.services."mdadm-grow-continue@" = {
description = "Manage MD Reshape on /dev/%I";

unitConfig.DefaultDependencies = false;

serviceConfig = {
ExecStart = ''${pkgs.mdadm}/bin/mdadm --grow --continue /dev/%I'';
StandardInput = "null";
StandardOutput = "null";
StandardError = "null";
KillMode = "none";
};
};

}
27 changes: 25 additions & 2 deletions nixos/tests/systemd.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test.nix {
import ./make-test.nix ({ pkgs, ... }: {
name = "systemd";

machine = { lib, ... }: {
@@ -21,6 +21,14 @@ import ./make-test.nix {
services.journald.extraConfig = "Storage=volatile";
services.xserver.displayManager.auto.user = "alice";

systemd.shutdown.test = pkgs.writeScript "test.shutdown" ''
#!${pkgs.stdenv.shell}
PATH=${lib.makeBinPath (with pkgs; [ utillinux coreutils ])}
mount -t 9p shared -o trans=virtio,version=9p2000.L /tmp/shared
touch /tmp/shared/shutdown-test
umount /tmp/shared
'';

systemd.services.testservice1 = {
description = "Test Service 1";
wantedBy = [ "multi-user.target" ];
@@ -69,5 +77,20 @@ import ./make-test.nix {
# has a last mount time, because the file system wasn't checked.
$machine->fail('dumpe2fs /dev/vdb | grep -q "^Last mount time: *n/a"');
};
# Regression test for https://github.com/NixOS/nixpkgs/issues/35268
subtest "file system with x-initrd.mount is not unmounted", sub {
$machine->shutdown;
$machine->waitForUnit('multi-user.target');
# If the file system was unmounted during the shutdown the file system
# has a last mount time, because the file system wasn't checked.
$machine->fail('dumpe2fs /dev/vdb | grep -q "^Last mount time: *n/a"');
};
subtest "systemd-shutdown works", sub {
$machine->shutdown;
$machine->waitForUnit('multi-user.target');
$machine->succeed('test -e /tmp/shared/shutdown-test');
};
'';
}
})
6 changes: 3 additions & 3 deletions pkgs/applications/altcoins/parity/beta.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let
version = "2.5.4";
sha256 = "103kg0lrijf6d0mc1nk4pdgwgkmp9ga51rwfqrkkm133lylrr0lf";
cargoSha256 = "1w9p43v76igb62mbjk2rl7fynk13l4hpz25jd4f4hk5b2y2wf3r7";
version = "2.6.0";
sha256 = "1v0wc6l09nr42ljlq5lq1dgignm53hq3pmrgp2sld9zfxy3vdy0x";
cargoSha256 = "1bkcvziz0diy76nbcgykajpnp6akva0m7ka7q6w3s9k7awxjxkx3";
in
import ./parity.nix { inherit version sha256 cargoSha256; }
6 changes: 3 additions & 3 deletions pkgs/applications/altcoins/parity/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let
version = "2.4.9";
sha256 = "0pj3yyjzc3fq0r7g8j22anzqxvm377pbcy27np1g7ygkzapzb2v6";
cargoSha256 = "1dxn00zxivmgk4a61nxwhjlv7fjsy2ngadyw0br1ssrkgz9k7af2";
version = "2.5.5";
sha256 = "193fnrf1pr67wblyxd5gbrg1rgflphnfaxgm3kb4iawjh18br6c6";
cargoSha256 = "1w9p43v76igb62mbjk2rl7fynk13l4hpz25jd4f4hk5b2y2wf3r7";
in
import ./parity.nix { inherit version sha256 cargoSha256; }
10 changes: 6 additions & 4 deletions pkgs/applications/altcoins/parity/parity.nix
Original file line number Diff line number Diff line change
@@ -3,9 +3,10 @@
, cargoSha256
}:

{ stdenv
{ lib
, fetchFromGitHub
, rustPlatform

, pkgconfig
, openssl
, systemd
@@ -14,7 +15,8 @@
}:

rustPlatform.buildRustPackage rec {
name = "parity-${version}";
pname = "parity";
inherit version;
inherit cargoSha256;

src = fetchFromGitHub {
@@ -34,11 +36,11 @@ rustPlatform.buildRustPackage rec {
# test result: FAILED. 80 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out
doCheck = false;

meta = with stdenv.lib; {
meta = with lib; {
description = "Fast, light, robust Ethereum implementation";
homepage = "http://parity.io";
license = licenses.gpl3;
maintainers = [ maintainers.akru ];
maintainers = with maintainers; [ akru xrelkd ];
platforms = platforms.linux;
};
}
2 changes: 0 additions & 2 deletions pkgs/applications/graphics/openimageio/2.x.nix
Original file line number Diff line number Diff line change
@@ -45,8 +45,6 @@ stdenv.mkDerivation rec {
"-DUSE_PYTHON=OFF"
"-DUSE_QT=OFF"
# GNUInstallDirs
"-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
"-DCMAKE_INSTALL_INCLUDEDIR=${placeholder "dev"}/include"
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkgconfig
];

2 changes: 0 additions & 2 deletions pkgs/applications/graphics/openimageio/default.nix
Original file line number Diff line number Diff line change
@@ -23,8 +23,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DUSE_PYTHON=OFF"
# GNUInstallDirs
"-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
];

makeFlags = [
4 changes: 2 additions & 2 deletions pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@

mkDerivation rec {
name = "calibre-${version}";
version = "3.45.2";
version = "3.46.0";

src = fetchurl {
url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz";
sha256 = "1379g375s3h0fgv9qg43hrg16knd76ym7qkffpn1qyc7kkhv8a05";
sha256 = "1dlss01kaz2qlg9ji8c9dn9rd73mmpm5yjg50zp49cwx9y2vjiz9";
};

patches = [
6 changes: 3 additions & 3 deletions pkgs/applications/networking/browsers/elinks/default.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
enableGuile ? false, guile ? null
, enablePython ? false, python ? null
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_1_8_5 ? null
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey ? null
}:

assert enableGuile -> guile != null;
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {

patches = [ ./gc-init.patch ];

buildInputs = [ ncurses xlibsWrapper bzip2 zlib openssl spidermonkey_1_8_5 gpm ]
buildInputs = [ ncurses xlibsWrapper bzip2 zlib openssl spidermonkey gpm ]
++ stdenv.lib.optional enableGuile guile
++ stdenv.lib.optional enablePython python
++ stdenv.lib.optional enablePerl perl
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optional enableGuile "--with-guile"
++ stdenv.lib.optional enablePython "--with-python"
++ stdenv.lib.optional enablePerl "--with-perl"
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey_1_8_5}"
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey}"
;

meta = {
15 changes: 9 additions & 6 deletions pkgs/applications/science/logic/tlaplus/toolbox.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ lib, fetchzip, makeWrapper, makeDesktopItem, stdenv
, jre, swt, gtk, libXtst, glib
, gtk, libXtst, glib, zlib
}:

let
version = "1.5.7";
version = "1.6.0";
arch = "x86_64";

desktopItem = makeDesktopItem rec {
@@ -24,7 +24,7 @@ in stdenv.mkDerivation {
name = "tla-toolbox-${version}";
src = fetchzip {
url = "https://tla.msr-inria.inria.fr/tlatoolbox/products/TLAToolbox-${version}-linux.gtk.${arch}.zip";
sha256 = "0lg9sizpw5mkcnwwvmgqigkizjyz2lf1wrg48h7mg7wcv3macy4q";
sha256 = "1mgx4p5qykf9q0p4cp6kcpc7fx8g5f2w1g40kdgas24hqwrgs3cm";
};

buildInputs = [ makeWrapper ];
@@ -34,17 +34,20 @@ in stdenv.mkDerivation {
installPhase = ''
mkdir -p "$out/bin"
cp -r "$src" "$out/toolbox"
chmod +w "$out/toolbox" "$out/toolbox/toolbox"
chmod -R +w "$out/toolbox"
patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
"$out/toolbox/toolbox"
patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
"$(find "$out/toolbox" -name java)"
makeWrapper $out/toolbox/toolbox $out/bin/tla-toolbox \
--run "set -x; cd $out/toolbox" \
--add-flags "-data ~/.tla-toolbox" \
--prefix PATH : "${jre}/bin" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ swt gtk libXtst glib ]}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk libXtst glib zlib ]}"
echo -e "\nCreating TLA Toolbox icons..."
pushd "$src"
Loading