Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into mariadb-10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Dec 26, 2017
2 parents 085ee23 + 4271a21 commit 9461c01
Show file tree
Hide file tree
Showing 30 changed files with 1,475 additions and 959 deletions.
4 changes: 2 additions & 2 deletions doc/languages-frameworks/haskell.md
Expand Up @@ -581,8 +581,8 @@ nix-shell "<nixpkgs>" -A haskellPackages.bar.env
Every Haskell package set takes a function called `overrides` that you can use
to manipulate the package as much as you please. One useful application of this
feature is to replace the default `mkDerivation` function with one that enables
library profiling for all packages. To accomplish that, add configure the
following snippet in your `~/.config/nixpkgs/config.nix` file:
library profiling for all packages. To accomplish that add the following
snippet to your `~/.config/nixpkgs/config.nix` file:
```nix
{
packageOverrides = super: let self = super.pkgs; in
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/graphics/darktable/default.nix
Expand Up @@ -11,12 +11,12 @@
assert stdenv ? glibc;

stdenv.mkDerivation rec {
version = "2.2.5";
version = "2.4.0";
name = "darktable-${version}";

src = fetchurl {
url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz";
sha256 = "10gjzd4irxhladh4jyss9kgp627k8vgx2divipsb33pp6cms80z3";
sha256 = "0y0q7a7k09sbg05k5xl1lz8n2ak1v8yarfv222ksvmbrxs53hdwx";
};

buildInputs =
Expand Down Expand Up @@ -49,6 +49,6 @@ stdenv.mkDerivation rec {
homepage = https://www.darktable.org;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu maintainers.rickynils maintainers.flosse ];
maintainers = with maintainers; [ goibhniu rickynils flosse mrVanDalo ];
};
}
1 change: 0 additions & 1 deletion pkgs/applications/misc/zathura/core/default.nix
Expand Up @@ -29,7 +29,6 @@ stdenv.mkDerivation rec {

makeFlags = [
"PREFIX=$(out)"
"RSTTOMAN=${docutils}/bin/rst2man.py"
"VERBOSE=1"
"TPUT=${ncurses.out}/bin/tput"
(optionalString synctexSupport "WITH_SYNCTEX=1")
Expand Down
Expand Up @@ -18,7 +18,6 @@ stdenv.mkDerivation rec {
];

postPatch = ''
substituteInPlace Makefile --replace rst2man rst2man.py
patchShebangs .
'';

Expand Down
Expand Up @@ -14,12 +14,7 @@ stdenv.mkDerivation rec {

outputs = [ "out" "man" ];

buildInputs = [ docutils makeWrapper ];

# The install.sh script expects rst2man, but here it's named rst2man.py
patchPhase = ''
sed -i 's/rst2man/rst2man.py/g' install.sh
'';
nativeBuildInputs = [ docutils makeWrapper ];

installPhase = ''
prefix="$out" ./install.sh
Expand Down
Expand Up @@ -4,14 +4,14 @@

stdenv.mkDerivation rec {
pname = "tig";
version = "2.3.0";
version = "2.3.2";
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "jonas";
repo = pname;
rev = name;
sha256 = "04qw3fyamm1lka9vh7adrkr2mcnwcch9ya5sph51jx6d4jz1lih5";
sha256 = "14cdlrdxbl8vzqw86fm3wyaixh607z47shc4dwd6rd9vj05w0m97";
};

nativeBuildInputs = [ makeWrapper autoreconfHook asciidoc xmlto docbook_xsl docbook_xml_dtd_45 findXMLCatalogs pkgconfig ];
Expand Down
17 changes: 11 additions & 6 deletions pkgs/common-updater/scripts/update-source-version
Expand Up @@ -39,13 +39,13 @@ if [ "$oldVersion" = "$newVersion" ]; then
exit 0
fi

# Escape dots, there should not be any other regex characters allowed in store path names
oldVersion=$(echo "$oldVersion" | sed -re 's|\.|\\.|g')
# Escape regex metacharacter that are allowed in store path names
oldVersion=$(echo "$oldVersion" | sed -re 's|[.+]|\\&|g')

if [ $(grep -c -E "^\s*(let\b)?\s*version\s+=\s+\"$oldVersion\"" "$nixFile") = 1 ]; then
if [ $(grep -c -E "^\s*(let\b)?\s*version\s*=\s*\"$oldVersion\"" "$nixFile") = 1 ]; then
pattern="/\bversion\b\s*=/ s|\"$oldVersion\"|\"$newVersion\"|"
elif [ $(grep -c -E "^\s*(let\b)?\s*name\s+=\s+\"$drvName-$oldVersion\"" "$nixFile") = 1 ]; then
pattern="/\bname\b\s*=/ s|\"$drvName-$oldVersion\"|\"$drvName-$newVersion\"|"
elif [ $(grep -c -E "^\s*(let\b)?\s*name\s*=\s*\"[^\"]+-$oldVersion\"" "$nixFile") = 1 ]; then
pattern="/\bname\b\s*=/ s|-$oldVersion\"|-$newVersion\"|"
else
die "Couldn't figure out where out where to patch in new version in '$attr'!"
fi
Expand Down Expand Up @@ -74,14 +74,19 @@ fi
if [ -z "$newHash" ]; then
nix-build --no-out-link -A "$attr.src" 2>"$attr.fetchlog" >/dev/null || true
# FIXME: use nix-build --hash here once https://github.com/NixOS/nix/issues/1172 is fixed
newHash=$(tail -n2 "$attr.fetchlog" | grep "output path .* has .* hash .* when .* was expected" | head -n1 | tr -dc '\040-\177' | awk '{ print $(NF-4) }')
newHash=$(egrep -v "killing process|dependencies couldn't be built" "$attr.fetchlog" | tail -n2 | grep "output path .* has .* hash .* when .* was expected" | head -n1 | tr -dc '\040-\177' | tr -d "'" | awk '{ print $(NF-4) }')
fi

if [ -z "$newHash" ]; then
cat "$attr.fetchlog" >&2
die "Couldn't figure out new hash of '$attr.src'!"
fi

if [ "$oldVersion" != "$newVersion" ] && [ "$oldHash" = "$newHash" ]; then
mv "$nixFile.bak" "$nixFile"
die "Both the old and new source hashes of '$attr.src' were equivalent. Please fix the package's source URL to be dependent on '\${version}'!"
fi

sed -i "$nixFile" -re "s|\"$tempHash\"|\"$newHash\"|"
if cmp -s "$nixFile" "$nixFile.bak"; then
die "Failed to replace temporary source hash of '$attr' to the final source hash!"
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/compilers/cmdstan/default.nix
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, python }:

stdenv.mkDerivation rec {
name = "cmdstan-2.9.0";
name = "cmdstan-2.17.1";

src = fetchurl {
url = "https://github.com/stan-dev/cmdstan/releases/download/v2.9.0/cmdstan-2.9.0.tar.gz";
sha256 = "08bim6nxgam989152hm0ga1rfb33mr71pwsym1nmfmavma68bwm9";
url = "https://github.com/stan-dev/cmdstan/releases/download/v2.17.1/cmdstan-2.17.1.tar.gz";
sha256 = "1vq1cnrkvrvbfl40j6ajc60jdrjcxag1fi6kff5pqmadfdz9564j";
};

buildFlags = "build";
Expand Down Expand Up @@ -37,6 +37,6 @@ stdenv.mkDerivation rec {
'';
homepage = http://mc-stan.org/interfaces/cmdstan.html;
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.all;
};
}
88 changes: 0 additions & 88 deletions pkgs/development/compilers/ghc/7.10.2.nix

This file was deleted.

32 changes: 0 additions & 32 deletions pkgs/development/compilers/jhc/default.nix

This file was deleted.

13 changes: 3 additions & 10 deletions pkgs/development/haskell-modules/configuration-common.nix
Expand Up @@ -905,13 +905,6 @@ self: super: {
# https://github.com/takano-akio/filelock/issues/5
filelock = dontCheck super.filelock;

# https://github.com/alpmestan/taggy/issues/{19,20}
taggy = appendPatch super.taggy (pkgs.fetchpatch {
name = "blaze-markup.patch";
url = "https://github.com/alpmestan/taggy/commit/5456c2fa4d377f7802ec5df3d5f50c4ccab2e8ed.patch";
sha256 = "1vss7b99zrhw3r29krl1b60r4qk0m2mpwmrz8q8zdxrh33hb8pd7";
});

# cryptol-2.5.0 doesn't want happy 1.19.6+.
cryptol = super.cryptol.override { happy = self.happy_1_19_5; };

Expand Down Expand Up @@ -958,9 +951,9 @@ self: super: {
# Hoogle needs a newer version than lts-10 provides.
hoogle = super.hoogle.override { haskell-src-exts = self.haskell-src-exts_1_20_1; };

# These packages depend on each other, forming an infinte loop.
scalendar = markBroken super.scalendar;
SCalendar = markBroken super.SCalendar;
# These packages depend on each other, forming an infinite loop.
scalendar = null;
SCalendar = null;

# Needs QuickCheck <2.10, which we don't have.
edit-distance = doJailbreak super.edit-distance;
Expand Down
94 changes: 0 additions & 94 deletions pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix

This file was deleted.

0 comments on commit 9461c01

Please sign in to comment.