diff --git a/nixos/modules/services/networking/iwd.nix b/nixos/modules/services/networking/iwd.nix index cfc536fc5b5..eb03d2e1d63 100644 --- a/nixos/modules/services/networking/iwd.nix +++ b/nixos/modules/services/networking/iwd.nix @@ -20,14 +20,7 @@ in { services.dbus.packages = [ pkgs.iwd ]; - systemd.services.iwd = { - description = "Wireless daemon"; - before = [ "network.target" ]; - wants = [ "network.target" ]; - wantedBy = [ "multi-user.target" ]; - - serviceConfig.ExecStart = "${pkgs.iwd}/libexec/iwd"; - }; + systemd.packages = [ pkgs.iwd ]; systemd.tmpfiles.rules = [ "d /var/lib/iwd 0700 root root -" diff --git a/nixos/tests/netdata.nix b/nixos/tests/netdata.nix index eb45db6f04c..9bd147968e4 100644 --- a/nixos/tests/netdata.nix +++ b/nixos/tests/netdata.nix @@ -20,6 +20,9 @@ import ./make-test.nix ({ pkgs, ...} : { $netdata->waitForUnit("netdata.service"); + # wait for the service to listen before sending a request + $netdata->waitForOpenPort(19999); + # check if the netdata main page loads. $netdata->succeed("curl --fail http://localhost:19999/"); diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index cd5d537a3be..ff088ad2621 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -448,8 +448,8 @@ let testScript = '' my $targetList = <<'END'; - tap0: tap UNKNOWN_FLAGS:800 user 0 - tun0: tun UNKNOWN_FLAGS:800 user 0 + tap0: tap persist user 0 + tun0: tun persist user 0 END # Wait for networking to come up @@ -552,15 +552,15 @@ let testScript = '' my $targetIPv4Table = <<'END'; - 10.0.0.0/16 scope link mtu 1500 + 10.0.0.0/16 proto static scope link mtu 1500 192.168.1.0/24 proto kernel scope link src 192.168.1.2 - 192.168.2.0/24 via 192.168.1.1 + 192.168.2.0/24 via 192.168.1.1 proto static END my $targetIPv6Table = <<'END'; 2001:1470:fffd:2097::/64 proto kernel metric 256 pref medium - 2001:1470:fffd:2098::/64 via fdfd:b3f0::1 metric 1024 pref medium - fdfd:b3f0::/48 metric 1024 pref medium + 2001:1470:fffd:2098::/64 via fdfd:b3f0::1 proto static metric 1024 pref medium + fdfd:b3f0::/48 proto static metric 1024 pref medium END $machine->start; diff --git a/pkgs/applications/altcoins/nano-wallet/default.nix b/pkgs/applications/altcoins/nano-wallet/default.nix index 76ee914bd3d..7491e830628 100644 --- a/pkgs/applications/altcoins/nano-wallet/default.nix +++ b/pkgs/applications/altcoins/nano-wallet/default.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { name = "nano-wallet-${version}"; - version = "14.2"; + version = "15.2"; src = fetchFromGitHub { owner = "nanocurrency"; repo = "raiblocks"; rev = "V${version}"; - sha256 = "0jbv5a8sz403a1pqcgl32idk6y0z510h7ikjg1dcxla0rsch6ipl"; + sha256 = "0ngsnaczw5y709zk52flp6m2c83q3kxfgz0bzi8rzfjxp10ncnz3"; fetchSubmodules = true; }; diff --git a/pkgs/applications/audio/mixxx/default.nix b/pkgs/applications/audio/mixxx/default.nix index 60a0695ffec..746e306d377 100644 --- a/pkgs/applications/audio/mixxx/default.nix +++ b/pkgs/applications/audio/mixxx/default.nix @@ -1,34 +1,24 @@ -{ stdenv, fetchurl, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2 +{ stdenv, fetchFromGitHub, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2 , libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis , pkgconfig, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite -, taglib, vampSDK +, taglib, upower, vampSDK }: stdenv.mkDerivation rec { name = "mixxx-${version}"; - version = "2.0.0"; + version = "2.1.3"; - src = fetchurl { - url = "https://downloads.mixxx.org/${name}/${name}-src.tar.gz"; - sha256 = "0vb71w1yq0xwwsclrn2jj9bk8w4n14rfv5c0aw46c11mp8xz7f71"; + src = fetchFromGitHub { + owner = "mixxxdj"; + repo = "mixxx"; + rev = "release-${version}"; + sha256 = "1fm8lkbnxka4haidf6yr8mb3r6vaxmc97hhrp8pcx0fvq2mnzvy2"; }; - patches = [ - (fetchpatch { - url = "https://sources.debian.net/data/main/m/mixxx/2.0.0~dfsg-7.1/debian/patches/0007-fix_gcc6_issue.patch"; - sha256 = "0kpyv10wcjcvbijk6vpq54gx9sqzrq4kq2qilc1czmisp9qdy5sd"; - }) - (fetchpatch { - url = "https://622776.bugs.gentoo.org/attachment.cgi?id=487284"; - name = "sqlite.patch"; - sha256 = "1qqbd8nrxrjcc1dwvyqfq1k2yz3l071sfcgd2dmpk6j8d4j5kx31"; - }) - ]; - buildInputs = [ chromaprint fftw flac faad2 mp4v2 libid3tag libmad libopus libshout libsndfile libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4 - rubberband scons sqlite taglib vampSDK + rubberband scons sqlite taglib upower vampSDK ]; sconsFlags = [ @@ -56,7 +46,7 @@ stdenv.mkDerivation rec { homepage = https://mixxx.org; description = "Digital DJ mixing software"; license = licenses.gpl2Plus; - maintainers = [ maintainers.aszlig maintainers.goibhniu ]; + maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ]; platforms = platforms.linux; }; } diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index 15d894b0413..d66a778c1cd 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -5,12 +5,12 @@ }: stdenv.mkDerivation rec { - version = "3.29.0"; + version = "3.30.0"; name = "calibre-${version}"; src = fetchurl { url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz"; - sha256 = "1r29vi8j51r0nnzpjbg34ryvizzkn31sq1iz7z748wjfgr87wmyh"; + sha256 = "0j7w63kniqnpr8v1aldzbim2dyrk79n23mzw9y56jqd0k47m8zfz"; }; patches = [ diff --git a/pkgs/applications/misc/subsurface/default.nix b/pkgs/applications/misc/subsurface/default.nix index 5e1e7bf3225..1b998c48580 100644 --- a/pkgs/applications/misc/subsurface/default.nix +++ b/pkgs/applications/misc/subsurface/default.nix @@ -4,14 +4,14 @@ }: let - version = "4.7.5"; + version = "4.8.1"; libdc = stdenv.mkDerivation rec { name = "libdivecomputer-ssrf-${version}"; src = fetchurl { url = "https://subsurface-divelog.org/downloads/libdivecomputer-subsurface-branch-${version}.tgz"; - sha256 = "1xsgnmgc7yb46lflx8ynkbdxg2f6sny6xg6caqgx7rf0x1jmjj4x"; + sha256 = "1x6z08gfp9jldv7vcsdasjcarns43qns9cm8s9w27n0c2lvchjvy"; }; nativeBuildInputs = [ autoreconfHook ]; @@ -70,7 +70,7 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "https://subsurface-divelog.org/downloads/Subsurface-${version}.tgz"; - sha256 = "0qqmnrmj2alr4rc2nqkv8sbdp92xb6j4j468wn6yqvgb23n77b82"; + sha256 = "0758sw05gjy8sckvaqc0hmbh2kibmzapgp0hlk8rsp1vsldq4vd2"; }; buildInputs = [ diff --git a/pkgs/applications/misc/xkbd/default.nix b/pkgs/applications/misc/xkbd/default.nix new file mode 100644 index 00000000000..ccbb88bd1a8 --- /dev/null +++ b/pkgs/applications/misc/xkbd/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, freetype, libXrender, libXft, xextproto +, xinput, libXi, libXext, libXtst, libXpm, libX11, xproto, autoreconfHook +}: + +stdenv.mkDerivation rec { + name = "xkbd-${version}"; + version = "0.8.18"; + + src = fetchFromGitHub { + owner = "mahatma-kaganovich"; + repo = "xkbd"; + rev = name; + sha256 = "05ry6q75jq545kf6p20nhfywaqf2wdkfiyp6iwdpv9jh238hf7m9"; + }; + + buildInputs = [ + freetype libXrender libXft libXext libXtst libXpm libX11 + libXi xextproto xinput xproto + ]; + + nativeBuildInputs = [ autoreconfHook ]; + + meta = with stdenv.lib; { + homepage = https://github.com/mahatma-kaganovich/xkbd; + description = "onscreen soft keyboard for X11"; + license = licenses.gpl2Plus; + maintainers = [ maintainers.genesis ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 87c7bddab6f..53ee46e2060 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -36,11 +36,11 @@ with python'.pkgs; buildPythonApplication rec { pname = "FlexGet"; - version = "2.14.9"; + version = "2.14.18"; src = fetchPypi { inherit pname version; - sha256 = "1a8nxfr0rzwwd7b0nxr7zmw04ygbqvnzbi4w4nw2w8xiy46zid3q"; + sha256 = "1pyvm1d23qy71rg7fzxcal8978kni7sn09zw4s4dsq56g8w80ay9"; }; postPatch = '' diff --git a/pkgs/applications/networking/irc/konversation/default.nix b/pkgs/applications/networking/irc/konversation/default.nix index c41b6116b29..ccee78a64da 100644 --- a/pkgs/applications/networking/irc/konversation/default.nix +++ b/pkgs/applications/networking/irc/konversation/default.nix @@ -30,13 +30,13 @@ let pname = "konversation"; - version = "1.7.4"; + version = "1.7.5"; in mkDerivation rec { name = "${pname}-${version}"; src = fetchurl { url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz"; - sha256 = "0y4rj4fcl1wsi3y1fhnzad9nf4llwrnipfm9mfm55kqnx1zmpvqp"; + sha256 = "0h098yhlp36ls6pdvs2r93ig8dv4fys62m0h6wxccprb0qrpbgv0"; }; buildInputs = [ @@ -70,13 +70,6 @@ in mkDerivation rec { kdoctools ]; - patches = [ - (fetchpatch { - url = "https://cgit.kde.org/konversation.git/patch/?id=20018b3d0798421c9cb8a9d983e5a5b34bd88e8d"; - sha256 = "0y5m5zimfhc0d1xnkzs05c8ig11lhwdn04fk76vi7966hx8wggnn"; - }) - ]; - meta = { description = "Integrated IRC client for KDE"; license = with lib.licenses; [ gpl2 ]; diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix index 096f2212cc4..7fd49fe205c 100644 --- a/pkgs/applications/science/math/sage/sage-src.nix +++ b/pkgs/applications/science/math/sage/sage-src.nix @@ -136,6 +136,13 @@ stdenv.mkDerivation rec { url = "https://git.sagemath.org/sage.git/patch?id2=8.4.beta0&id=8bef4fd2876a61969b516fe4eb3b8ad7cc076c5e"; sha256 = "00p3hfsfn3w2vxgd9fjd23mz7xfxjfravf8ysjxkyd657jbkpjmk"; }) + + # https://trac.sagemath.org/ticket/26117 + (fetchpatch { + name = "sympy-1.2.patch"; + url = "https://git.sagemath.org/sage.git/patch?id2=8.4.beta2&id=d94a0a3a3fb4aec05a6f4d95166d90c284f05c36"; + sha256 = "0an2xl1pp3jg36kgg2m1vb7sns7rprk1h3d0qy1gxwdab6i7qnvi"; + }) ]; patches = nixPatches ++ packageUpgradePatches ++ [ diff --git a/pkgs/applications/video/clipgrab/default.nix b/pkgs/applications/video/clipgrab/default.nix index 031202ad646..96e0bb04031 100644 --- a/pkgs/applications/video/clipgrab/default.nix +++ b/pkgs/applications/video/clipgrab/default.nix @@ -2,10 +2,10 @@ stdenv.mkDerivation rec { name = "clipgrab-${version}"; - version = "3.6.8"; + version = "3.6.9"; src = fetchurl { - sha256 = "0agp97g79mlqcwfz2xk5rdxw4kx0hm92xikdspbpxlfji1mkh10p"; + sha256 = "16r0h286vqw1bns29sx5x2919pj3y8gxf1k7dpf9xrz0vm2zrc3v"; # The .tar.bz2 "Download" link is a binary blob, the source is the .tar.gz! url = "https://download.clipgrab.org/${name}.tar.gz"; }; diff --git a/pkgs/development/compilers/elm/default.nix b/pkgs/development/compilers/elm/default.nix index 6a8d5f11b75..93deb4a90af 100644 --- a/pkgs/development/compilers/elm/default.nix +++ b/pkgs/development/compilers/elm/default.nix @@ -1,14 +1,56 @@ -{ lib, stdenv, buildEnv, haskell, nodejs, fetchurl, makeWrapper }: +{ lib, stdenv, buildEnv, haskell, nodejs, fetchurl, makeWrapper, git }: # To update: -# 1) Update versions in ./update-elm.rb and run it. -# 2) Checkout elm-reactor and run `elm-package install -y` inside. -# 3) Run ./elm2nix.rb in elm-reactor's directory. -# 4) Move the resulting 'package.nix' to 'packages/elm-reactor-elm.nix'. + +# 1) Modify ./update.sh and run it + +# 2) to generate versions.dat: +# 2.1) git clone https://github.com/elm/compiler.git +# 2.2) cd compiler +# 2.3) cabal2nix --shell . | sed 's/"default",/"ghc822",/' > shell.nix +# 2.4) nix-shell +# 2.5) mkdir .elm +# 2.6) export ELM_HOME=$(pwd)/.elm +# 2.7) cabal build +# 2.8) cp .elm/0.19.0/package/versions.dat ... + +# 3) generate a template for elm-elm.nix with: +# ( +# echo "{"; +# jq '.dependencies | .direct, .indirect | to_entries | .[] | { (.key) : { version : .value, sha256: "" } } ' \ +# < ui/browser/elm.json \ +# | sed 's/:/ =/' \ +# | sed 's/^[{}]//' \ +# | sed -E 's/(["}]),?$/\1;/' \ +# | sed -E 's/"(version|sha256)"/\1/' \ +# | grep -v '^$'; +# echo "}" +# ) +# +# ... then fill in the sha256s + +# Notes: + +# the elm binary embeds a piece of pre-compiled elm code, used by 'elm +# reactor'. this means that the build process for 'elm' effectively +# executes 'elm make'. that in turn expects to retrieve the elm +# dependencies of that code (elm/core, etc.) from +# package.elm-lang.org, as well as a cached bit of metadata +# (versions.dat). + +# the makeDotElm function lets us retrieve these dependencies in the +# standard nix way. we have to copy them in (rather than symlink) and +# make them writable because the elm compiler writes other .dat files +# alongside the source code. versions.dat was produced during an +# impure build of this same code; the build complains that it can't +# update this cache, but continues past that warning. + +# finally, we set ELM_HOME to point to these pre-fetched artifacts so +# that the default of ~/.elm isn't used. let - makeElmStuff = deps: - let json = builtins.toJSON (lib.mapAttrs (name: info: info.version) deps); + makeDotElm = ver: deps: + let versionsDat = ./versions.dat; cmds = lib.mapAttrsToList (name: info: let pkg = stdenv.mkDerivation { @@ -29,80 +71,61 @@ let }; in '' - mkdir -p elm-stuff/packages/${name} - ln -s ${pkg} elm-stuff/packages/${name}/${info.version} + mkdir -p .elm/${ver}/package/${name} + cp -R ${pkg} .elm/${ver}/package/${name}/${info.version} '') deps; - in '' - export HOME=/tmp - mkdir elm-stuff - cat > elm-stuff/exact-dependencies.json < packages/elm-format.nix - where foo is a tag for a new version, for example "0.3.1-alpha". + where foo is a tag for a new version, for example "0.8.0". */ - elm-format = self.callPackage ./packages/elm-format.nix { }; - elm-interface-to-json = self.callPackage ./packages/elm-interface-to-json.nix { - aeson-pretty = self.aeson-pretty_0_7_2; - either = hlib.overrideCabal self.either (drv :{ - jailbreak = true; - version = "4.4.1.1"; - sha256 = "1lrlwqqnm6ibfcydlv5qvvssw7bm0c6yypy0rayjzv1znq7wp1xh"; - libraryHaskellDepends = drv.libraryHaskellDepends or [] ++ [ - self.exceptions self.free self.mmorph self.monad-control - self.MonadRandom self.profunctors self.transformers - self.transformers-base - ]; - }); - }; + elm-format = overrideCabal (self.callPackage ./packages/elm-format.nix { }) (drv: { + # https://github.com/avh4/elm-format/issues/529 + patchPhase = '' + cat >Setup.hs < "0.18.0", - "elm-package" => "0.18.0", - "elm-make" => "0.18.0", - "elm-reactor" => "0.18.0", - "elm-repl" => "0.18.0" - } - -for pkg, ver in $elm_packages - system "cabal2nix https://github.com/elm-lang/#{pkg} --revision refs/tags/#{ver} --jailbreak > packages/#{pkg}.nix" -end - -File.open("packages/release.nix", 'w') do |file| - file.puts "# This file is auto-generated by ./update-elm.rb." - file.puts "# Please, do not modify it by hand!" - file.puts "{ callPackage }:" - file.puts "{" - file.puts " version = \"#{$elm_version}\";" - file.puts " packages = {" - for pkg, ver in $elm_packages - file.puts " #{pkg} = callPackage ./#{pkg}.nix { };" - end - file.puts " };" - file.puts "}" -end diff --git a/pkgs/development/compilers/elm/update.sh b/pkgs/development/compilers/elm/update.sh new file mode 100755 index 00000000000..02e5bdc9b58 --- /dev/null +++ b/pkgs/development/compilers/elm/update.sh @@ -0,0 +1,3 @@ +cabal2nix https://github.com/elm/compiler --revision 32059a289d27e303fa1665e9ada0a52eb688f302 > packages/elm.nix +cabal2nix --no-check cabal://indents-0.3.3 > packages/indents.nix +cabal2nix --no-haddock --no-check --jailbreak --revision refs/tags/0.8.0 http://github.com/avh4/elm-format > packages/elm-format.nix diff --git a/pkgs/development/compilers/elm/versions.dat b/pkgs/development/compilers/elm/versions.dat new file mode 100644 index 00000000000..824ab383057 Binary files /dev/null and b/pkgs/development/compilers/elm/versions.dat differ diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 61c2da2b419..ef55272d6e9 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -672,6 +672,9 @@ self: super: { # https://github.com/bos/bloomfilter/issues/7 bloomfilter = appendPatch super.bloomfilter ./patches/bloomfilter-fix-on-32bit.patch; + # https://github.com/ashutoshrishi/hunspell-hs/pull/3 + hunspell-hs = addPkgconfigDepend (dontCheck (appendPatch super.hunspell-hs ./patches/hunspell.patch)) pkgs.hunspell; + # https://github.com/pxqr/base32-bytestring/issues/4 base32-bytestring = dontCheck super.base32-bytestring; diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 37916c0bba2..0786238040b 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -46,6 +46,10 @@ in , isExecutable ? false, isLibrary ? !isExecutable , jailbreak ? false , license +# We cannot enable -j parallelism for libraries because GHC is far more +# likely to generate a non-determistic library ID in that case. Further +# details are at . +, enableParallelBuilding ? (stdenv.lib.versionOlder "7.8" ghc.version && !isLibrary) || stdenv.lib.versionOlder "8.0.1" ghc.version , maintainers ? [] , doCoverage ? false , doHaddock ? !(ghc.isHaLVM or false) @@ -112,11 +116,6 @@ let main = defaultMain ''; - # We cannot enable -j parallelism for libraries because GHC is far more - # likely to generate a non-determistic library ID in that case. Further - # details are at . - enableParallelBuilding = (versionOlder "7.8" ghc.version && !isLibrary) || versionOlder "8.0.1" ghc.version; - crossCabalFlags = [ "--with-ghc=${ghc.targetPrefix}ghc" "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg" diff --git a/pkgs/development/haskell-modules/patches/hunspell.patch b/pkgs/development/haskell-modules/patches/hunspell.patch new file mode 100644 index 00000000000..cc115029a7a --- /dev/null +++ b/pkgs/development/haskell-modules/patches/hunspell.patch @@ -0,0 +1,30 @@ +diff -Naur hunspell-hs-0.1.0.0.orig/hunspell-hs.cabal hunspell-hs-0.1.0.0/hunspell-hs.cabal +--- hunspell-hs-0.1.0.0.orig/hunspell-hs.cabal 2018-08-26 20:23:33.053763300 +0200 ++++ hunspell-hs-0.1.0.0/hunspell-hs.cabal 2018-08-26 20:42:05.886074510 +0200 +@@ -37,7 +37,7 @@ + base >=4.7 && <5 + , stm + if os(linux) +- extra-libraries: ++ pkgconfig-depends: + hunspell + if os(darwin) + include-dirs: +@@ -63,7 +63,7 @@ + , hunspell-hs + , stm + if os(linux) +- extra-libraries: ++ pkgconfig-depends: + hunspell + if os(darwin) + include-dirs: +@@ -88,7 +88,7 @@ + , hunspell-hs + , stm + if os(linux) +- extra-libraries: ++ pkgconfig-depends: + hunspell + if os(darwin) + include-dirs: diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix index 622c0554967..aae15c62d73 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix @@ -134,7 +134,7 @@ EOF harfbuzz icu libevent - ] ++ optionals stdenv.hostPlatform.isArm [ + ] ++ optionals (stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64) [ ffmpeg ] ++ optionals (!stdenv.isDarwin) [ dbus zlib minizip snappy nss protobuf jsoncpp diff --git a/pkgs/development/libraries/udunits/default.nix b/pkgs/development/libraries/udunits/default.nix index b02ac885237..664bc29a72d 100644 --- a/pkgs/development/libraries/udunits/default.nix +++ b/pkgs/development/libraries/udunits/default.nix @@ -1,22 +1,26 @@ -{ stdenv, fetchurl, - bison, flex, expat, file +{ stdenv, fetchFromGitHub, autoreconfHook, + texinfo, bison, flex, expat, file }: stdenv.mkDerivation rec { - name = "udunits-2.2.26"; - src = fetchurl { - url = "ftp://ftp.unidata.ucar.edu/pub/udunits/${name}.tar.gz"; - sha256 = "0v9mqw4drnkzkm57331ail6yvs9485jmi37s40lhvmf7r5lli3rn"; - }; + name = "udunits-${version}"; + version = "2.2.27.6"; + + src = fetchFromGitHub { + owner = "Unidata"; + repo = "UDUNITS-2"; + rev = "v${version}"; + sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm"; + }; - nativeBuildInputs = [ bison flex file ]; - buildInputs = [ expat ]; + nativeBuildInputs = [ autoreconfHook texinfo bison flex file ]; + buildInputs = [ expat ]; - meta = with stdenv.lib; { - homepage = https://www.unidata.ucar.edu/software/udunits/; - description = "A C-based package for the programatic handling of units of physical quantities"; - license = licenses.bsdOriginal; - platforms = platforms.linux; - maintainers = with maintainers; [ pSub ]; - }; + meta = with stdenv.lib; { + homepage = https://www.unidata.ucar.edu/software/udunits/; + description = "A C-based package for the programatic handling of units of physical quantities"; + license = licenses.bsdOriginal; + platforms = platforms.linux; + maintainers = with maintainers; [ pSub ]; + }; } diff --git a/pkgs/development/python-modules/sympy/default.nix b/pkgs/development/python-modules/sympy/default.nix index f41f2e7b4fa..fb702e046a4 100644 --- a/pkgs/development/python-modules/sympy/default.nix +++ b/pkgs/development/python-modules/sympy/default.nix @@ -8,44 +8,36 @@ buildPythonPackage rec { pname = "sympy"; - version = "1.1.1"; + version = "1.2"; # Upgrades may break sage. Please test. src = fetchPypi { inherit pname version; - sha256 = "ac5b57691bc43919dcc21167660a57cc51797c28a4301a6144eff07b751216a4"; + sha256 = "0pr2v7dl51ngch1cfs423qsb472l9ys1m8m7vrhhh99fsxqa0v18"; }; checkInputs = [ glibcLocales ]; propagatedBuildInputs = [ mpmath ]; - # Bunch of failures including transients. + # some tests fail: https://github.com/sympy/sympy/issues/15149 doCheck = false; + patches = [ + # to be fixed by https://github.com/sympy/sympy/pull/13476 + (fetchpatch { + url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba"; + sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr"; + }) + ]; + preCheck = '' export LANG="en_US.UTF-8" ''; - patches = [ - # see https://trac.sagemath.org/ticket/20204 and https://github.com/sympy/sympy/issues/12825 - # There is also an upstream patch for this, included in the next release (PR #128826). - # However that doesn't quite fix the issue yet. Apparently some changes by sage are required. - # TODO re-evaluate the change once a new sympy version is released (open a sage trac ticket about - # it). - (fetchpatch { - url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba"; - sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr"; - }) - (fetchpatch { - url = "https://github.com/sympy/sympy/pull/13276.patch"; - sha256 = "1rz74b5c74vwh3pj9axxgh610i02l3555vvsvr4a15ya7siw7zxh"; - }) - ]; - meta = { description = "A Python library for symbolic mathematics"; homepage = http://www.sympy.org/; license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ lovek323 ]; + maintainers = with lib.maintainers; [ lovek323 timokau ]; }; } diff --git a/pkgs/development/tools/build-managers/apache-maven/default.nix b/pkgs/development/tools/build-managers/apache-maven/default.nix index 19ca5b9c078..455cd0a3fe8 100644 --- a/pkgs/development/tools/build-managers/apache-maven/default.nix +++ b/pkgs/development/tools/build-managers/apache-maven/default.nix @@ -2,7 +2,7 @@ assert jdk != null; -let version = "3.5.3"; in +let version = "3.5.4"; in stdenv.mkDerivation rec { name = "apache-maven-${version}"; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://apache/maven/maven-3/${version}/binaries/${name}-bin.tar.gz"; - sha256 = "0244mpziz4rw35x2cahsqlxpnygvi6qpll16g4kx87db7wvmcadm"; + sha256 = "0kd1jzlz3b2kglppi85h7286vdwjdmm7avvpwgppgjv42g4v2l6f"; }; buildInputs = [ makeWrapper ]; diff --git a/pkgs/development/tools/misc/tokei/default.nix b/pkgs/development/tools/misc/tokei/default.nix index 0059c10afe0..831a9ec6278 100644 --- a/pkgs/development/tools/misc/tokei/default.nix +++ b/pkgs/development/tools/misc/tokei/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { name = "tokei-${version}"; - version = "7.0.3"; + version = "8.0.0"; src = fetchFromGitHub { owner = "Aaronepower"; repo = "tokei"; rev = "v${version}"; - sha256 = "1n2ddwmyd414p6a98khq8y0bmljwcclw30wy5zy5b6z1l40yxcza"; + sha256 = "1sfwmjlvjrd8r0ynnayw7g3514mfiky2j30byphaagdw4jkxbd7c"; }; - cargoSha256 = "0ngqk8nnw00s25y91vgsl37j26xl2ws75l3lvklf9gbd4bi01crv"; + cargoSha256 = "0v29gych757h7vv5jsg7rpl705gpqn0ya8ai53582qd2cc6yz4c3"; meta = with stdenv.lib; { description = "Count code, quickly"; diff --git a/pkgs/games/endgame-singularity/default.nix b/pkgs/games/endgame-singularity/default.nix new file mode 100644 index 00000000000..8b259bad88d --- /dev/null +++ b/pkgs/games/endgame-singularity/default.nix @@ -0,0 +1,56 @@ +{ stdenv, fetchurl, unzip, python2 }: + +python2.pkgs.buildPythonApplication rec { + pname = "endgame-singularity"; + version = "0.30c"; + format = "other"; + + srcs = [ + (fetchurl { + url = "http://www.emhsoft.com/singularity/singularity-${version}-src.tar.gz"; + sha256 = "13zjhf67gmla67nkfpxb01rxs8j9n4hs0s4n9lnnq4zgb709yxgl"; + }) + (fetchurl { + url = "http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip"; + sha256 = "0vf2qaf66jh56728pq1zbnw50yckjz6pf6c6qw6dl7vk60kkqnpb"; + }) + ]; + sourceRoot = "."; + + nativeBuildInputs = [ unzip ]; # The music is zipped + propagatedBuildInputs = with python2.pkgs; [ pygame numpy ]; + + # This is not an error: it needs both compilation rounds + buildPhase = '' + ${python2.interpreter} -m compileall "singularity-${version}" + ${python2.interpreter} -O -m compileall "singularity-${version}" + ''; + + installPhase = '' + install -Dm755 "singularity-${version}/singularity.py" "$out/share/singularity.py" + install -Dm644 "singularity-${version}/singularity.pyo" "$out/share/singularity.pyo" + install -Dm644 "singularity-${version}/singularity.pyc" "$out/share/singularity.pyc" + cp -R "singularity-${version}/code" "singularity-${version}/data" "$out/share/" + cp -R "endgame-singularity-music-007" "$out/share/music" + ''; + + # Tell it where to find python libraries + # Also cd to the same directory as the code, since it uses relative paths + postFixup = '' + makeWrapper "${python2.interpreter}" "$out/bin/endgame-singularity" \ + --set PYTHONPATH "$PYTHONPATH" \ + --run "cd \"$out/share\"" \ + --add-flags "$out/share/singularity.py" + ''; + + meta = { + homepage = http://www.emhsoft.com/singularity/; + description = "A simulation game about strong AI"; + longDescription = '' + A simulation of a true AI. Go from computer to computer, pursued by the + entire world. Keep hidden, and you might have a chance + ''; + license = stdenv.lib.licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [ fgaz ]; + }; +} diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index 833609f9fc2..79179f3fcbb 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -1,19 +1,19 @@ -{ stdenv, fetchgit, autoreconfHook, readline, python3Packages }: +{ stdenv, fetchgit, autoreconfHook, coreutils, readline, python3Packages }: let ell = fetchgit { url = https://git.kernel.org/pub/scm/libs/ell/ell.git; - rev = "0.7"; - sha256 = "095psnpfdy107z5qgi5zw0icqxa44dfx02lza3pd8j4ybj57n0l7"; + rev = "0.9"; + sha256 = "1kg7cx7ir8bvz33n624ncrq9r4fh7rg9z22fly894a3mk1imq22p"; }; in stdenv.mkDerivation rec { name = "iwd-${version}"; - version = "0.4"; + version = "0.7"; src = fetchgit { url = https://git.kernel.org/pub/scm/network/wireless/iwd.git; rev = version; - sha256 = "1hib256jm70k6jlx486jrcv0iip52divbzhvb0f455yh28qfk0hs"; + sha256 = "0q76fh6fcl7nxyjl8z2n4plp2qaxc1fqx575by6xqf1rnv4nk0ab"; }; nativeBuildInputs = [ @@ -35,8 +35,9 @@ in stdenv.mkDerivation rec { configureFlags = [ "--with-dbus-datadir=$(out)/etc/" - "--localstatedir=/var" - "--disable-systemd-service" + "--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/" + "--with-systemd-unitdir=$(out)/lib/systemd/system/" + "--localstatedir=/var/" ]; postUnpack = '' @@ -55,6 +56,11 @@ in stdenv.mkDerivation rec { wrapPythonPrograms ''; + postFixup = '' + substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.iwd.service \ + --replace /bin/false ${coreutils}/bin/false + ''; + meta = with stdenv.lib; { homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git; description = "Wireless daemon for Linux"; diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index dd3186bc876..68b5e7c21a8 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -302,7 +302,7 @@ let CIFS_XATTR = yes; CIFS_POSIX = yes; CIFS_FSCACHE = yes; - CIFS_STATS = yes; + CIFS_STATS = whenOlder "4.19" yes; CIFS_WEAK_PW_HASH = yes; CIFS_UPCALL = yes; CIFS_ACL = yes; diff --git a/pkgs/os-specific/linux/kernel/linux-testing.nix b/pkgs/os-specific/linux/kernel/linux-testing.nix index ec3baaf1e0a..c2feeceb072 100644 --- a/pkgs/os-specific/linux/kernel/linux-testing.nix +++ b/pkgs/os-specific/linux/kernel/linux-testing.nix @@ -1,13 +1,13 @@ { stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, libelf, utillinux, ... } @ args: buildLinux (args // rec { - version = "4.18-rc8"; - modDirVersion = "4.18.0-rc8"; - extraMeta.branch = "4.18"; + version = "4.19-rc1"; + modDirVersion = "4.19.0-rc1"; + extraMeta.branch = "4.19"; src = fetchurl { url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz"; - sha256 = "0rqyqms63c15iwcwy40yqd9fvlvh3ah09gddv0wf45z9dqp7id1m"; + sha256 = "14c9xg9sv0jrdri36das97vdbybi7vmcy59mj9wmgaz81cdk3wg5"; }; # Should the testing kernels ever be built on Hydra? diff --git a/pkgs/servers/irc/charybdis/default.nix b/pkgs/servers/irc/charybdis/default.nix index 332372830d6..dc053f4581c 100644 --- a/pkgs/servers/irc/charybdis/default.nix +++ b/pkgs/servers/irc/charybdis/default.nix @@ -1,13 +1,13 @@ { stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }: stdenv.mkDerivation rec { - name = "charybdis-4.1"; + name = "charybdis-4.1.1"; src = fetchFromGitHub { owner = "charybdis-ircd"; repo = "charybdis"; rev = name; - sha256 = "1j0fjf4rdiyvakxqa97x272xra64rzjhbj8faciyb4b13pyrdsmw"; + sha256 = "0wvssc8b1xq6svcqrwxrpc1ga8ip0sksv73wwbk8na0pmysdvpg0"; }; postPatch = '' diff --git a/pkgs/tools/X11/dex/default.nix b/pkgs/tools/X11/dex/default.nix index d147ef4a70c..2a3a406135b 100644 --- a/pkgs/tools/X11/dex/default.nix +++ b/pkgs/tools/X11/dex/default.nix @@ -3,16 +3,17 @@ stdenv.mkDerivation rec { program = "dex"; name = "${program}-${version}"; - version = "0.7"; + version = "0.8.0"; src = fetchFromGitHub { owner = "jceb"; repo = program; rev = "v${version}"; - sha256 = "041ms01snalapapaniabr92d8iim1qrxian626nharjmp2rd69v5"; + sha256 = "13dkjd1373mbvskrdrp0865llr3zvdr90sc6a6jqswh3crmgmz4k"; }; propagatedBuildInputs = [ python3 ]; + nativeBuildInputs = [ python3.pkgs.sphinx ]; makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ]; meta = { diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 0f712853f24..ef3e36ff627 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -1,12 +1,12 @@ { callPackage, fetchgit, fetchpatch, ... } @ args: callPackage ./generic.nix (args // rec { - version = "12.2.2"; + version = "12.2.7"; src = fetchgit { url = "https://github.com/ceph/ceph.git"; rev = "refs/tags/v${version}"; - sha256 = "01anqxyffa8l2lzgyb0dj6fjicfjdx2cq9y1klh24x69gxwkdh00"; + sha256 = "031nfw2g2fdpxxx39g862phgmdx68hj9r54axazandghfhc1bzrl"; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a13076e2313..3f48d65c11b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1456,6 +1456,8 @@ with pkgs; onboard = callPackage ../applications/misc/onboard { }; + xkbd = callPackage ../applications/misc/xkbd { }; + optar = callPackage ../tools/graphics/optar {}; patdiff = callPackage ../tools/misc/patdiff { }; @@ -1706,7 +1708,9 @@ with pkgs; nrg2iso = callPackage ../tools/cd-dvd/nrg2iso { }; libceph = ceph.lib; - ceph = callPackage ../tools/filesystems/ceph { boost = boost165; }; + ceph = callPackage ../tools/filesystems/ceph { + boost = boost166.override { enablePython = true; }; + }; ceph-dev = ceph; certmgr = callPackage ../tools/security/certmgr { }; @@ -19746,6 +19750,8 @@ with pkgs; EmptyEpsilon = callPackage ../games/empty-epsilon { }; + endgame-singularity = callPackage ../games/endgame-singularity { }; + endless-sky = callPackage ../games/endless-sky { }; enyo-doom = libsForQt5.callPackage ../games/enyo-doom { };