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

Commits on Sep 6, 2019

  1. mill: 0.5.0->0.5.1

    scalavision committed Sep 6, 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
    24ebaf4 View commit details

Commits on Sep 7, 2019

  1. update-luarocks-packages: reference only 1 server

    we now pass a configuration file when calling luarocks to prevent
    impurities.
    teto committed Sep 7, 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
    89c3c1c View commit details
  2. fetchurl: add luarocks mirrors

    luarocks defines by default the following mirrors:
    https://github.com/luarocks/luarocks/blob/83093e7da7f789f0f7d3a6784597cbbed09c73e0/src/luarocks/core/cfg.lua#L205
    
    Let's add them to nixpkgs. I have modified luarocks-nix to generate the
    proper nixpkgs urls.
    I bump luarocks-nix in the following commits.
    teto committed Sep 7, 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
    4d526d6 View commit details
  3. nbstripout: 0.3.1 -> 0.3.6

    jluttine committed Sep 7, 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
    8b51ee3 View commit details
  4. luarocks-nix: bump to 2019-09-07

    added version and transferred the repostiory to nix-community.
    With this bump, luarocks-nix generates mirro://luarocks urls.
    teto committed Sep 7, 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
    4a31890 View commit details
  5. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    00b8bf4 View commit details
  6. Copy the full SHA
    feed103 View commit details
  7. Copy the full SHA
    ae8c8f8 View commit details
  8. Copy the full SHA
    b084a3d View commit details
  9. Copy the full SHA
    5df0605 View commit details
  10. nixos/cmt: add cmt module

    Adds custom touchpad drivers for Chromebooks.
    kcalvinalvin committed Sep 7, 2019
    Copy the full SHA
    fa53852 View commit details

Commits on Sep 8, 2019

  1. nano-wallet: 18.0 -> 19.0

    jluttine committed Sep 8, 2019
    Copy the full SHA
    e38a360 View commit details
  2. bukubrow: 2.4.0 -> 5.0.0

    arcnmx committed Sep 8, 2019
    Copy the full SHA
    c33a44a View commit details
  3. Copy the full SHA
    fa0b187 View commit details
  4. inkscape: add wrapGAppsHook for icons (fixed for strictDeps)

    Resolves #68185.
    The icons in Inkscape depend on gdk-pixbuf loaders, but because
    strictDeps is set to true to fix some macOS issues it doesn't work
    (see #56943). Adding librsvg to buildInputs explicitly fixes the issue.
    rileyinman committed Sep 8, 2019
    Copy the full SHA
    cd04b61 View commit details
  5. Merge pull request #68287 from rileyinman/inkscape-strictdeps

    inkscape: add wrapGAppsHook for icons (fixed for strictDeps)
    jtojnar authored Sep 8, 2019
    Copy the full SHA
    975d5f1 View commit details
  6. Merge pull request #68254 from scalavision/mill-update-0.5.1

    mill: 0.5.0->0.5.1
    mmahut authored Sep 8, 2019
    Copy the full SHA
    8977ae2 View commit details
  7. Copy the full SHA
    c5050d0 View commit details
  8. Merge pull request #67241 from kcalvinalvin/cmt

    nixos/modules/services/x11/hardware/: add cmt module
    infinisil authored Sep 8, 2019
    Copy the full SHA
    916603c View commit details
  9. Merge pull request #68315 from jluttine/nano-wallet-19.0

    nano-wallet: 18.0 -> 19.0
    mmahut authored Sep 8, 2019
    Copy the full SHA
    df3b84a View commit details
  10. Merge pull request #68255 from jluttine/nbstripout-0.3.6

    nbstripout: 0.3.1 -> 0.3.6
    mmahut authored Sep 8, 2019
    Copy the full SHA
    462cdb9 View commit details
  11. sundials: use cmakeFlags

    flokli committed Sep 8, 2019
    Copy the full SHA
    d9ce716 View commit details
  12. sundials: enable tests

    flokli committed Sep 8, 2019
    Copy the full SHA
    ad3023e View commit details
  13. sundials: add lapack support

    flokli committed Sep 8, 2019
    Copy the full SHA
    5f48e89 View commit details
  14. sundials_3: init at 3.2.1

    That's needed for scikits.odes.
    Upstream bug to migrate to sundials 4:
    bmcage/odes#98
    flokli committed Sep 8, 2019
    Copy the full SHA
    7e9e22f View commit details
  15. sundials: relax tolerance for test_sunmatrix_sparse

    This test fails on MacOS otherwise, due to slightly different math.
    
    Only add for sundials 4, it's not in sundials_3 yet.
    idontgetoutmuch authored and flokli committed Sep 8, 2019
    Copy the full SHA
    ac12bdf View commit details
  16. sundials: include patch to remove flakiness

    The provided patch doesn't apply cleanly on sundials_3 (no
    SundialsTesting.cmake, SundialsAddTest.cmake containing trailing
    whitespaces inside context), so for now we just disable tests for
    sundials_3 - scikits-odes plans to move to sundials 4 anyways - see
    bmcage/odes#106.
    flokli committed Sep 8, 2019
    Copy the full SHA
    a5de10b View commit details
  17. Copy the full SHA
    652448f View commit details
  18. Merge pull request #64195 from flokli/scikits-odes

    scikits-odes: init at 2.4.0
    flokli authored Sep 8, 2019
    Copy the full SHA
    a77fba2 View commit details
  19. urlview: fix path to url_handler.sh

    By default, `/etc/urlview/url_handler.sh` is used which breaks by
    default with the following error:
    
    ```
    sh: /etc/urlview/url_handler.sh: No such file or directory
    ```
    
    With this change, the script will be copied to `$out` and `urlview` will
    be patched accordingly.
    Ma27 committed Sep 8, 2019
    Copy the full SHA
    8cd9b85 View commit details

Commits on Sep 9, 2019

  1. Copy the full SHA
    59eb91d View commit details
  2. Copy the full SHA
    faab2ff View commit details
  3. Copy the full SHA
    3cdc583 View commit details
  4. Merge pull request #65489 from arcnmx/pr-bukubrow-update

    bukubrow: 2.4.0 -> 5.0.0
    infinisil authored Sep 9, 2019
    Copy the full SHA
    6128371 View commit details
  5. Merge pull request #68323 from romildo/upd.mate

    mate.engrampa: 1.22.1 -> 1.22.2
    romildo authored Sep 9, 2019
    Copy the full SHA
    febe3b4 View commit details
  6. Copy the full SHA
    e19054a View commit details
  7. Copy the full SHA
    adf5ca2 View commit details
  8. Merge pull request #68258 from teto/luarocks-nix_bump

    Moved luarocks-nix to community and leverage luarocks mirrors when possible.
    teto authored Sep 9, 2019
    Copy the full SHA
    59d65e2 View commit details
  9. Merge pull request #68335 from lopsided98/jemalloc450-disable-thp

    jemalloc450: disable transparent huge pages on ARM
    Mic92 authored Sep 9, 2019
    Copy the full SHA
    4d6a6fe View commit details
  10. Merge pull request #68332 from Ma27/urlview-handler-fix

    urlview: fix path to url_handler.sh
    Mic92 authored Sep 9, 2019
    Copy the full SHA
    367bc8b View commit details
  11. nemiver: clean up (#68333)

    nemiver: clean up
    Mic92 authored Sep 9, 2019
    Copy the full SHA
    21f61dd View commit details
  12. Merge pull request #68244 from NixOS/staging-next

    Staging next that includes gcc8
    FRidh authored Sep 9, 2019
    Copy the full SHA
    731c82a View commit details
  13. Merge master into staging-next

    FRidh committed Sep 9, 2019
    Copy the full SHA
    3a89de6 View commit details
Showing with 525 additions and 129 deletions.
  1. +6 −0 maintainers/maintainer-list.nix
  2. +4 −0 maintainers/scripts/luarocks-config.lua
  3. +1 −0 maintainers/scripts/update-luarocks-packages
  4. +1 −0 nixos/modules/module-list.nix
  5. +54 −0 nixos/modules/services/x11/hardware/cmt.nix
  6. +11 −4 pkgs/applications/blockchains/nano-wallet/default.nix
  7. +4 −1 pkgs/applications/graphics/inkscape/default.nix
  8. +14 −3 pkgs/applications/misc/urlview/default.nix
  9. +5 −24 pkgs/applications/version-management/nbstripout/default.nix
  10. +7 −0 pkgs/build-support/fetchurl/mirrors.nix
  11. +1 −2 pkgs/desktops/gnome-3/default.nix
  12. +0 −13 pkgs/desktops/gnome-3/devtools/nemiver/bool_slot.patch
  13. +0 −10 pkgs/desktops/gnome-3/devtools/nemiver/safe_ptr.patch
  14. +2 −2 pkgs/desktops/mate/engrampa/default.nix
  15. +7 −0 pkgs/development/libraries/jemalloc/common.nix
  16. +52 −0 pkgs/development/libraries/sundials/3.x.nix
  17. +39 −9 pkgs/development/libraries/sundials/default.nix
  18. +45 −0 pkgs/development/libraries/sundials/tests-parallel.patch
  19. +2 −2 pkgs/development/python-modules/django/2_2.nix
  20. +55 −0 pkgs/development/python-modules/scikits-odes/default.nix
  21. +2 −2 pkgs/development/tools/build-managers/mill/default.nix
  22. +0 −27 pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
  23. +5 −4 pkgs/development/tools/misc/luarocks/luarocks-nix.nix
  24. +47 −9 pkgs/{desktops/gnome-3/devtools → development/tools}/nemiver/default.nix
  25. +8 −0 pkgs/os-specific/linux/chromium-xorg-conf/default.nix
  26. +29 −0 pkgs/os-specific/linux/libevdevc/default.nix
  27. +33 −0 pkgs/os-specific/linux/libgestures/default.nix
  28. +12 −0 pkgs/os-specific/linux/libgestures/include-fix.patch
  29. +36 −0 pkgs/os-specific/linux/xf86-input-cmt/default.nix
  30. +29 −17 pkgs/tools/networking/bukubrow/default.nix
  31. +12 −0 pkgs/top-level/all-packages.nix
  32. +2 −0 pkgs/top-level/python-packages.nix
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -3249,6 +3249,12 @@
githubId = 1047859;
name = "Kaz Wesley";
};
kcalvinalvin = {
email = "calvin@kcalvinalvin.info";
github = "kcalvinalvin";
githubId = 37185887;
name = "Calvin Kim";
};
kentjames = {
email = "jameschristopherkent@gmail.com";
github = "kentjames";
4 changes: 4 additions & 0 deletions maintainers/scripts/luarocks-config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rocks_servers = {
"https://luarocks.org"
}
version_check_on_fail = false
1 change: 1 addition & 0 deletions maintainers/scripts/update-luarocks-packages
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ CSV_FILE="maintainers/scripts/luarocks-packages.csv"
TMP_FILE="$(mktemp)"
# Set in the update-luarocks-shell.nix
NIXPKGS_PATH="$LUAROCKS_NIXPKGS_PATH"
export LUAROCKS_CONFIG="$NIXPKGS_PATH/maintainers/scripts/luarocks-config.lua"

# 10 is a pretty arbitrary number of simultaneous jobs, but it is generally
# impolite to hit a webserver with *too* many simultaneous connections :)
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -853,6 +853,7 @@
./services/x11/hardware/multitouch.nix
./services/x11/hardware/synaptics.nix
./services/x11/hardware/wacom.nix
./services/x11/hardware/cmt.nix
./services/x11/gdk-pixbuf.nix
./services/x11/redshift.nix
./services/x11/urxvtd.nix
54 changes: 54 additions & 0 deletions nixos/modules/services/x11/hardware/cmt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }:

with lib;

let

cfg = config.services.xserver.cmt;
etcPath = "X11/xorg.conf.d";

in {

options = {

services.xserver.cmt = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable chrome multitouch input (cmt). Touchpad drivers that are configured for chromebooks.";
};
models = mkOption {
type = types.enum [ "atlas" "banjo" "candy" "caroline" "cave" "celes" "clapper" "cyan" "daisy" "elan" "elm" "enguarde" "eve" "expresso" "falco" "gandof" "glimmer" "gnawty" "heli" "kevin" "kip" "leon" "lulu" "orco" "pbody" "peppy" "pi" "pit" "puppy" "quawks" "rambi" "samus" "snappy" "spring" "squawks" "swanky" "winky" "wolf" "auron_paine" "auron_yuna" "daisy_skate" "nyan_big" "nyan_blaze" "veyron_jaq" "veyron_jerry" "veyron_mighty" "veyron_minnie" "veyron_speedy" ];
example = "banjo";
description = ''
Which models to enable cmt for. Enter the Code Name for your Chromebook.
Code Name can be found at <link xlink:href="https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices" />.
'';
};
}; #closes services
}; #closes options

config = mkIf cfg.enable {

services.xserver.modules = [ pkgs.xf86_input_cmt ];

environment.etc = {
"${etcPath}/40-touchpad-cmt.conf" = {
source = "${pkgs.chromium-xorg-conf}/40-touchpad-cmt.conf";
};
"${etcPath}/50-touchpad-cmt-${cfg.models}.conf" = {
source = "${pkgs.chromium-xorg-conf}/50-touchpad-cmt-${cfg.models}.conf";
};
"${etcPath}/60-touchpad-cmt-${cfg.models}.conf" = {
source = "${pkgs.chromium-xorg-conf}/60-touchpad-cmt-${cfg.models}.conf";
};
};

assertions = [
{
assertion = !config.services.xserver.libinput.enable;
message = "cmt and libinput are incompatible, you cannot enable both (in services.xserver).";
}
];
};
}
15 changes: 11 additions & 4 deletions pkgs/applications/blockchains/nano-wallet/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{lib, stdenv, fetchFromGitHub, cmake, pkgconfig, boost, libGL, qtbase}:
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, wrapQtAppsHook, boost, libGL
, qtbase}:

stdenv.mkDerivation rec {

pname = "nano-wallet";
version = "18.0";
version = "19.0";

src = fetchFromGitHub {
owner = "nanocurrency";
repo = "raiblocks";
rev = "V${version}";
sha256 = "03f9g1x7rs7vic9yzsjxsh5ddx9ys78rssbfghbccfw9qrwylh3y";
sha256 = "1y5fc4cvfqh33imjkh91sqhy5bb9kh0icwyvdgm1cl564vnjax80";
fetchSubmodules = true;
};

@@ -32,13 +33,19 @@ stdenv.mkDerivation rec {
optionToFlag = name: value: "-D${name}=${value}";
in lib.mapAttrsToList optionToFlag options;

nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
buildInputs = [ boost libGL qtbase ];

buildPhase = ''
make nano_wallet
'';

# Move executables under bin directory
postInstall = ''
mkdir -p $out/bin
mv $out/nano* $out/bin/
'';

checkPhase = ''
./core_test
'';
5 changes: 4 additions & 1 deletion pkgs/applications/graphics/inkscape/default.nix
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper
, gsl, python2, poppler, imagemagick, libwpg, librevenge
, libvisio, libcdr, libexif, potrace, cmake, hicolor-icon-theme
, librsvg, wrapGAppsHook
}:

let
@@ -40,14 +41,16 @@ stdenv.mkDerivation rec {
--replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"'
'';

nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env ]
nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env wrapGAppsHook ]
++ (with perlPackages; [ perl XMLParser ]);
buildInputs = [
libXft libpng zlib popt boehmgc
libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
gsl poppler imagemagick libwpg librevenge
libvisio libcdr libexif potrace hicolor-icon-theme

librsvg # for loading icons

python2Env perlPackages.perl
];

17 changes: 14 additions & 3 deletions pkgs/applications/misc/urlview/default.nix
Original file line number Diff line number Diff line change
@@ -31,10 +31,21 @@ stdenv.mkDerivation rec {

patches = debianPatches;

meta = {
postPatch = ''
substituteInPlace urlview.c \
--replace '/etc/urlview/url_handler.sh' "$out/etc/urlview/url_handler.sh"
'';

postInstall = ''
install -Dm755 url_handler.sh $out/etc/urlview/url_handler.sh
patchShebangs $out/etc/urlview
'';

meta = with stdenv.lib; {
description = "Extract URLs from text";
homepage = https://packages.qa.debian.org/u/urlview.html;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; linux ++ darwin;
license = licenses.gpl2;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ ma27 ];
};
}
29 changes: 5 additions & 24 deletions pkgs/applications/version-management/nbstripout/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{lib, python2Packages, fetchFromGitHub, fetchurl, git, mercurial, coreutils}:
{lib, python2Packages, git, mercurial, coreutils}:

with python2Packages;
buildPythonApplication rec {
version = "0.3.1";
version = "0.3.6";
pname = "nbstripout";

# Mercurial should be added as a build input but because it's a Python
@@ -12,30 +12,11 @@ buildPythonApplication rec {
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ ipython nbformat ];

# PyPI source is currently missing tests. Thus, use GitHub instead.
# See: https://github.com/kynan/nbstripout/issues/73
# Use PyPI again after it has been fixed in a release.
src = fetchFromGitHub {
owner = "kynan";
repo = pname;
rev = version;
sha256 = "1jifqmszjzyaqzaw2ir83k5fdb04iyxdad4lclawpb42hbink9ws";
src = fetchPypi {
inherit pname version;
sha256 = "1x6010akw7iqxn7ba5m6malfr2fvaf0bjp3cdh983qn1s7vwlq0r";
};

patches = [
(
# Fix git diff tests by using --no-index.
# See: https://github.com/kynan/nbstripout/issues/74
#
# Remove this patch once the pull request has been merged and a new
# release made.
fetchurl {
url = "https://github.com/jluttine/nbstripout/commit/03e28424fb788dd09a95e99814977b0d0846c0b4.patch";
sha256 = "09myfb77a2wh8lqqs9fcpam97vmaw8b7zbq8n5gwn6d80zbl7dn0";
}
)
];

# for some reason, darwin uses /bin/sh echo native instead of echo binary, so
# force using the echo binary
postPatch = ''
7 changes: 7 additions & 0 deletions pkgs/build-support/fetchurl/mirrors.nix
Original file line number Diff line number Diff line change
@@ -8,6 +8,13 @@
# Mirrors for mirror://site/filename URIs, where "site" is
# "sourceforge", "gnu", etc.

luarocks = [
https://luarocks.org
https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/
http://luafr.org/moonrocks
http://luarocks.logiceditor.com/rocks
];

# SourceForge.
sourceforge = [
https://downloads.sourceforge.net/
3 changes: 1 addition & 2 deletions pkgs/desktops/gnome-3/default.nix
Original file line number Diff line number Diff line change
@@ -231,8 +231,6 @@ lib.makeScope pkgs.newScope (self: with self; {

gnome-devel-docs = callPackage ./devtools/gnome-devel-docs { };

nemiver = callPackage ./devtools/nemiver { };

#### Games

aisleriot = callPackage ./games/aisleriot { };
@@ -345,6 +343,7 @@ lib.makeScope pkgs.newScope (self: with self; {
inherit (pkgs) gnome-video-effects; # added 2019-08-19
inherit (pkgs) gnome-online-accounts grilo grilo-plugins tracker tracker-miners gnome-photos; # added 2019-08-23
inherit (pkgs) glib-networking; # added 2019-09-02
inherit (pkgs) nemiver; # added 2019-09-09

defaultIconTheme = adwaita-icon-theme;
gtk = gtk3;
13 changes: 0 additions & 13 deletions pkgs/desktops/gnome-3/devtools/nemiver/bool_slot.patch

This file was deleted.

10 changes: 0 additions & 10 deletions pkgs/desktops/gnome-3/devtools/nemiver/safe_ptr.patch

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/desktops/mate/engrampa/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "engrampa";
version = "1.22.1";
version = "1.22.2";

src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "06z38vfs15f5crrrgvcsqfb557fhpq1mqkj5fd9wb0hvi77hasrk";
sha256 = "0ph7ngk32nnzc3psqjs5zy52zbjilk30spr2r4sixqxvmz7d28gd";
};

nativeBuildInputs = [
7 changes: 7 additions & 0 deletions pkgs/development/libraries/jemalloc/common.nix
Original file line number Diff line number Diff line change
@@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
configureFlags = []
++ optional stripPrefix "--with-jemalloc-prefix="
++ optional disableInitExecTls "--disable-initial-exec-tls"
# jemalloc is unable to correctly detect transparent hugepage support on
# ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
# kernel ARMv6/7 kernel does not enable it, so we explicitly disable support
++ optionals (stdenv.isAarch32 && versionOlder version "5") [
"--disable-thp"
"je_cv_thp=no"
]
;

doCheck = true;
52 changes: 52 additions & 0 deletions pkgs/development/libraries/sundials/3.x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ stdenv
, cmake
, fetchurl
, python
, liblapack
, gfortran
, lapackSupport ? true }:

let liblapackShared = liblapack.override {
shared = true;
};

in stdenv.mkDerivation rec {
pname = "sundials";
version = "3.2.1";

buildInputs = [ python ] ++ stdenv.lib.optionals (lapackSupport) [ gfortran ];
nativeBuildInputs = [ cmake ];

src = fetchurl {
url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz";
sha256 = "0238r1qnwqz13wcjzfsbcfi8rfnlxcjjmxq2vpf2qf5jgablvna7";
};

patches = [
(fetchurl {
# https://github.com/LLNL/sundials/pull/19
url = "https://github.com/LLNL/sundials/commit/1350421eab6c5ab479de5eccf6af2dcad1eddf30.patch";
sha256 = "0g67lixp9m85fqpb9rzz1hl1z8ibdg0ldwq5z6flj5zl8a7cw52l";
})
];

cmakeFlags = [
"-DEXAMPLES_INSTALL_PATH=${placeholder "out"}/share/examples"
] ++ stdenv.lib.optionals (lapackSupport) [
"-DSUNDIALS_INDEX_TYPE=int32_t"
"-DLAPACK_ENABLE=ON"
"-DLAPACK_LIBRARIES=${liblapackShared}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary};${liblapackShared}/lib/libblas${stdenv.hostPlatform.extensions.sharedLibrary}"
];

# flaky tests, and patch in https://github.com/LLNL/sundials/pull/21 doesn't apply cleanly for sundials_3
doCheck = false;
checkPhase = "make test";

meta = with stdenv.lib; {
description = "Suite of nonlinear differential/algebraic equation solvers";
homepage = https://computation.llnl.gov/projects/sundials;
platforms = platforms.all;
maintainers = with maintainers; [ flokli idontgetoutmuch ];
license = licenses.bsd3;
};
}
Loading