Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2017-07-03 09:48:58 +02:00
124 changed files with 4698 additions and 3339 deletions

View File

@@ -7,15 +7,15 @@ let
in stdenv.mkDerivation rec {
name = "spin-${version}";
version = "6.4.5";
version = "6.4.6";
url-version = stdenv.lib.replaceChars ["."] [""] version;
src = fetchurl {
# The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL.
# Dropbox mirror from developers:
# https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AAANRpxsSyWC7iHZB-XgBwJFa/spin645.tar.gz?raw=1";
sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224";
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AAA-vBeJ7xty-CDZgk7OB58Ta/spin646.tar.gz?raw=1";
sha256 = "1n33qzlb7g30vhr5yxssw210b2m0242y9j21c7fqpn9z6b0rbhjp";
};
nativeBuildInputs = [ makeWrapper ];

View File

@@ -2,15 +2,18 @@
let ccache = stdenv.mkDerivation rec {
name = "ccache-${version}";
version = "3.2.5";
version = "3.3.4";
src = fetchurl {
sha256 = "11db1g109g0g5si0s50yd99ja5f8j4asxb081clvx78r9d9i2w0i";
sha256 = "0ks0vk408mdppfbk8v38p46fqx3p30r9a9cwiia43373i7rmpw94";
url = "mirror://samba/ccache/${name}.tar.xz";
};
buildInputs = [ zlib ];
# non to be fail on filesystems with unconventional blocksizes (zfs on Hydra?)
patches = [ ./skip-fs-dependent-test.patch ];
postPatch = ''
substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
'';

View File

@@ -0,0 +1,43 @@
--- ccache-3.3.4.org/test.sh 2017-02-17 21:28:53.000000000 +0000
+++ ccache-3.3.4/test.sh 2017-07-01 18:38:00.523403023 +0100
@@ -2631,23 +2631,23 @@
$CCACHE -F 0 -M 256K >/dev/null
$CCACHE -c >/dev/null
# floor(0.8 * 4) = 3
- expect_file_count 3 '*.o' $CCACHE_DIR
- expect_file_count 3 '*.d' $CCACHE_DIR
- expect_file_count 3 '*.stderr' $CCACHE_DIR
- expect_stat 'files in cache' 9
- expect_stat 'cleanups performed' 1
- for i in 3 4 5; do
- file=$CCACHE_DIR/a/result$i-4017.o
- if [ ! -f $file ]; then
- test_failed "File $file removed when it shouldn't"
- fi
- done
- for i in 0 1 2 6 7 8 9; do
- file=$CCACHE_DIR/a/result$i-4017.o
- if [ -f $file ]; then
- test_failed "File $file not removed when it should"
- fi
- done
+ #expect_file_count 3 '*.o' $CCACHE_DIR
+ #expect_file_count 3 '*.d' $CCACHE_DIR
+ #expect_file_count 3 '*.stderr' $CCACHE_DIR
+ #expect_stat 'files in cache' 9
+ #expect_stat 'cleanups performed' 1
+ #for i in 3 4 5; do
+ # file=$CCACHE_DIR/a/result$i-4017.o
+ # if [ ! -f $file ]; then
+ # test_failed "File $file removed when it shouldn't"
+ # fi
+ #done
+ #for i in 0 1 2 6 7 8 9; do
+ # file=$CCACHE_DIR/a/result$i-4017.o
+ # if [ -f $file ]; then
+ # test_failed "File $file not removed when it should"
+ # fi
+ #done
# -------------------------------------------------------------------------
TEST "Automatic cache cleanup"

View File

@@ -1,11 +0,0 @@
--- a/build.py 2017-01-16 21:12:43.000000000 +0100
+++ b/build.py 2017-02-26 22:03:11.394625315 +0100
@@ -71,7 +71,7 @@
if do_build:
if not os.path.exists("Makefile"):
print("Generating makefile")
- if subprocess.call(['qmake-qt4']):
+ if subprocess.call(['qmake']):
exit(1)
print("Compiling (please wait)")

View File

@@ -1,24 +1,29 @@
{stdenv, fetchurl, ctags, qt4, python}:
{ stdenv, fetchurl, makeWrapper, python, qt4, ctags, gdb }:
stdenv.mkDerivation rec {
version = "2.0.3";
name = "gede-${version}";
version = "2.0.4";
src = fetchurl {
url = "http://gede.acidron.com/uploads/source/${name}.tar.xz";
sha256 = "1znlmkjgrmjl79q73xaa9ybp1xdc3k4h4ynv3jj5z8f92gjnj3kk";
sha256 = "0ip86ss35sc330p4aykv5qj74jbdwh38i928w1bxb6g3w0xmfqba";
};
buildInputs = [ ctags qt4 python ];
patches = [ ./build.patch ];
nativeBuildInputs = [ makeWrapper python ];
unpackPhase = ''
tar xf ${src}
cd ${name}
buildInputs = [ qt4 ];
postPatch = ''
sed -i build.py -e 's,qmake-qt4,qmake,'
'';
buildPhase = ":";
installPhase = ''
python build.py install --prefix="$out"
wrapProgram $out/bin/gede \
--prefix PATH : ${stdenv.lib.makeBinPath [ ctags gdb ]}
'';
configurePhase = "";
buildPhase = "";
installPhase = "./build.py install --prefix=$out";
meta = with stdenv.lib; {
description = "Graphical frontend (GUI) to GDB";
@@ -28,4 +33,3 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ juliendehos ];
};
}

View File

@@ -2,14 +2,14 @@
stdenv.mkDerivation rec {
name = "yodl-${version}";
version = "3.08.02";
version = "4.01.00";
nativeBuildInputs = [ icmake ];
buildInputs = [ perl ];
src = fetchFromGitHub {
sha256 = "0z4pjrl4bq03fxc50c9h0bnc90vqn5c2dy830mjyzjrn1ms3i003";
sha256 = "1aahwmj4gmf59lrij2373lkgfj77i3ghdas9c7iqrjwaizb0430p";
rev = version;
repo = "yodl";
owner = "fbb-git";

View File

@@ -1,9 +1,9 @@
{ stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, ppx_deriving, camlp4, ocamlbuild
, cmdliner, tyxml, reactivedata, cppo, which, base64, uchar
{ stdenv, fetchurl, ocaml, findlib, lwt, menhir, ocsigen_deriving, ppx_deriving, camlp4, ocamlbuild
, cmdliner, tyxml, reactivedata, cppo, which, base64, uchar, yojson
}:
let version = if stdenv.lib.versionAtLeast ocaml.version "4.02"
then "2.8.3" else "2.7";
then "2.8.4" else "2.7";
in
stdenv.mkDerivation {
@@ -12,15 +12,15 @@ stdenv.mkDerivation {
url = "https://github.com/ocsigen/js_of_ocaml/archive/${version}.tar.gz";
sha256 = {
"2.7" = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj";
"2.8.3" = "0xrw215w5saqdcdd9ipjhvg8f982z63znsds9ih445s3jr49szm7";
"2.8.4" = "098ph50s9kqw6rc3qjn39zv9b5swdf4qr44afwqfkkjgjs5d7vbl";
}."${version}";
};
buildInputs = [ ocaml findlib menhir ocsigen_deriving ocamlbuild
cmdliner reactivedata cppo which base64 ]
++ stdenv.lib.optional (stdenv.lib.versionAtLeast ocaml.version "4.02") tyxml;
propagatedBuildInputs = [ ocaml_lwt camlp4 ppx_deriving ]
++ stdenv.lib.optional (version == "2.8.3") uchar;
++ stdenv.lib.optionals (stdenv.lib.versionAtLeast ocaml.version "4.02") [ yojson tyxml ];
propagatedBuildInputs = [ lwt camlp4 ppx_deriving ]
++ stdenv.lib.optional (version == "2.8.4") uchar;
patches = [ ./Makefile.conf.diff ];

View File

@@ -2,6 +2,10 @@
, lambdaTerm, ocaml_lwt, camomile, zed, cppo, ppx_tools, makeWrapper
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "utop is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
version = "1.19.3";
name = "utop-${version}";