Merge master into staging

This commit is contained in:
Frederik Rietdijk
2018-04-08 10:54:17 +02:00
150 changed files with 2923 additions and 772 deletions

View File

@@ -1,12 +1,12 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "8.8";
version = "8.9";
name = "checkstyle-${version}";
src = fetchurl {
url = "mirror://sourceforge/checkstyle/${name}-bin.tar.gz";
sha256 = "0yawd6mbz6cqj0qlrh01vy33p30f4s3pfrvsxwg5l11p416zzrz4";
sha256 = "058lffmlzw7nqz5z89m2k640q7ffz6dz008bddvjsgpxbrdb89cd";
};
installPhase = ''

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, requireFile, makeWrapper, yacc, gcc
{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
, withISpin ? true, tk, swarm, graphviz }:
let
@@ -10,14 +10,12 @@ in stdenv.mkDerivation rec {
version = "6.4.8";
url-version = stdenv.lib.replaceChars ["."] [""] version;
src = requireFile {
name = "spin${url-version}.tar.gz";
sha256 = "1rpazi5fj772121cn7r85fxypmaiv0x6x2l82b5y1xqzyf0fi4ph";
message = ''
reCAPTCHA is preventing us to download the file for you.
Please download it at http://spinroot.com/spin/Src/index.html
and add it to the nix-store using nix-prefetch-url.
'';
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/AADya1lOBJZDbgWGrUSq-dfHa/spin${url-version}.tar.gz?raw=1";
sha256 = "1rvamdsf0igzpndlr4ck7004jw9x1bg4xyf78zh5k9sp848vnd80";
};
nativeBuildInputs = [ makeWrapper ];
@@ -25,12 +23,6 @@ in stdenv.mkDerivation rec {
sourceRoot = "Spin/Src${version}";
unpackPhase = ''
# The archive is compressed twice
gunzip -c $src > spin.tar.gz
tar -xzf spin.tar.gz
'';
installPhase = ''
install -Dm755 spin $out/bin/spin
wrapProgram $out/bin/spin \

View File

@@ -33,7 +33,7 @@ mkDerivation rec {
description = "DB Browser for SQLite";
homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ matthiasbeyer ];
maintainers = with maintainers; [ ];
platforms = platforms.linux; # can only test on linux
};
}

View File

@@ -42,6 +42,19 @@ in stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin
cp bin/godot.x11.tools.* $out/bin/godot
mkdir -p "$out/share/applications"
cp misc/dist/linux/godot.desktop "$out/share/applications/"
substituteInPlace "$out/share/applications/godot.desktop" \
--replace "Exec=godot" \
"Exec=$out/bin/godot"
mkdir -p "$out/share/icons/hicolor/scalable/apps/"
cp icon.svg "$out/share/icons/hicolor/scalable/apps/godot.svg"
cp icon.png "$out/share/icons/godot.png"
mkdir -p "$out/share/man/man6"
cp misc/dist/linux/godot.6 "$out/share/man/man6/"
'';
meta = {

View File

@@ -0,0 +1,48 @@
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gdb }:
stdenv.mkDerivation rec {
name = "pwndbg-2018-04-06";
src = fetchFromGitHub {
owner = "pwndbg";
repo = "pwndbg";
rev = "e225ba9f647ab8f7f4871075529c0ec239f43300";
sha256 = "1s6m93qi3baclgqqii4fnmzjmg0c6ipkscg7xiljaj5z4bs371j4";
};
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = with pythonPackages; [
future
isort
psutil
pycparser
pyelftools
python-ptrace
ROPGadget
six
unicorn
pygments
enum34
];
installPhase = ''
mkdir -p $out/share/pwndbg
cp -r *.py pwndbg $out/share/pwndbg
makeWrapper ${gdb}/bin/gdb $out/bin/pwndbg \
--add-flags "-q -x $out/share/pwndbg/gdbinit.py"
'';
preFixup = ''
sed -i "/import sys/a import sys; sys.path[0:0] = '$PYTHONPATH'.split(':')" \
$out/share/pwndbg/gdbinit.py
'';
meta = with stdenv.lib; {
description = "Exploit Development and Reverse Engineering with GDB Made Easy";
homepage = http://pwndbg.com;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ mic92 ];
};
}

View File

@@ -2,7 +2,7 @@
, libaio }:
stdenv.mkDerivation rec {
name = "sysbench-1.0.13";
name = "sysbench-1.0.14";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ vim mysql.connector-c libaio ];
@@ -10,8 +10,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "akopytov";
repo = "sysbench";
rev = "1.0.13";
sha256 = "1inxyjpcyv2ag3k5riwlaq91362y16yks75vs2crmhjxlxdspy8c";
rev = "1.0.14";
sha256 = "0mp1wqdm87zqyn55z23qf1izqz7ijgcbsysdwqndd98w6m5d86rp";
};
meta = {

View File

@@ -0,0 +1,15 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
, js_of_ocaml, ppx_deriving
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-ppx_deriving_json-${version}";
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ];
propagatedBuildInputs = [ js_of_ocaml ppx_deriving ];
buildPhase = "jbuilder build -p js_of_ocaml-ppx_deriving_json";
}