Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-03-28 15:16:29 +00:00
628 changed files with 60034 additions and 8180 deletions

View File

@@ -1,12 +1,12 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "6.16";
version = "6.17";
name = "checkstyle-${version}";
src = fetchurl {
url = "mirror://sourceforge/checkstyle/${name}-bin.tar.gz";
sha256 = "0kmddfzn7p6fads6crw4gnahvi36xwqyw35i7a2lplrdp8dn9xdd";
sha256 = "1cfcjz1fg9ilqqaqlbzd5n7nsx1kzy6sabjp92b9d8mwy15bn5ql";
};
installPhase = ''

View File

@@ -5,6 +5,7 @@ with lib;
stdenv.mkDerivation rec {
version = "0.22.0";
name = "flow-${version}";
src = fetchFromGitHub {
owner = "facebook";
repo = "flow";

View File

@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, cmake, libpfm, zlib, python, pkgconfig, pythonPackages, which, procps }:
{ stdenv, fetchFromGitHub, cmake, libpfm, zlib, python, pkgconfig, pythonPackages, which, procps, gdb }:
stdenv.mkDerivation rec {
version = "4.0.3";
version = "4.2.0";
name = "rr-${version}";
src = fetchFromGitHub {
owner = "mozilla";
repo = "rr";
rev = version;
sha256 = "0k12r1hzkn5286kz5cg4mvii92m0prs58przchr495r9hfjcy276";
sha256 = "03fl2wgbc1cilaw8hrhfqjsbpi05cid6k4cr3s2vmv5gx0dnrgy4";
};
patchPhase = ''
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
buildInputs = [ cmake libpfm zlib python pkgconfig pythonPackages.pexpect which procps ];
buildInputs = [ cmake libpfm zlib python pkgconfig pythonPackages.pexpect which procps gdb ];
cmakeFlags = "-DCMAKE_C_FLAGS_RELEASE:STRING= -DCMAKE_CXX_FLAGS_RELEASE:STRING=";
enableParallelBuilding = true;

View File

@@ -1,7 +1,9 @@
{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
, withISpin ? true, tk, swarm, graphviz }:
let
binPath = stdenv.lib.makeBinPath [ gcc ];
ibinPath = stdenv.lib.makeBinPath [ gcc tk swarm graphviz tk ];
in stdenv.mkDerivation rec {
name = "spin-${version}";
@@ -22,9 +24,13 @@ in stdenv.mkDerivation rec {
sourceRoot = "Spin/Src${version}";
installPhase = ''
install -D spin $out/bin/spin
install -Dm755 spin $out/bin/spin
wrapProgram $out/bin/spin \
--prefix PATH : ${binPath}
'' + lib.optionalString withISpin ''
install -Dm755 ../iSpin/ispin.tcl $out/bin/ispin
wrapProgram $out/bin/ispin \
--prefix PATH ':' "$out/bin:${ibinPath}"
'';
meta = with stdenv.lib; {

View File

@@ -0,0 +1,30 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "swarm-${version}";
version = "3.1";
src = fetchurl {
url = "http://www.spinroot.com/swarm/swarm${version}.tar";
sha256 = "12hi6wy0v0jfbrmgfxpnz7vxfzz3g1c6z7dj8p8kc2nm0q5bii47";
};
sourceRoot = ".";
buildPhase = ''
gcc -O2 -lm swarm.c -o swarm
'';
installPhase = ''
install -Dm755 swarm $out/bin/swarm
install -Dm644 swarm.1 $out/share/man/man1/swarm.1
'';
meta = with stdenv.lib; {
description = "Verification script generator for Spin";
homepage = http://spinroot.com/;
license = licenses.free;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}