2014-04-28 20:46:16 +02:00
|
|
|
{ stdenv, fetchurl, gtk, gdk_pixbuf, atk, pango, glib, cairo, freetype
|
|
|
|
, fontconfig, libxml2, gnome2 }:
|
|
|
|
|
|
|
|
let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath
|
|
|
|
[ stdenv.gcc.libc stdenv.gcc.gcc gtk gdk_pixbuf atk pango glib cairo
|
|
|
|
freetype fontconfig libxml2 gnome2.gtksourceview
|
2014-06-10 23:38:45 +02:00
|
|
|
] + ":${stdenv.gcc.gcc}/lib64";
|
2014-04-28 20:46:16 +02:00
|
|
|
|
2014-06-10 23:38:45 +02:00
|
|
|
patchExe = x: ''
|
2014-04-28 20:46:16 +02:00
|
|
|
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2014-06-10 23:38:45 +02:00
|
|
|
--set-rpath ${libPath} ${x}
|
2014-04-28 20:46:16 +02:00
|
|
|
'';
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "verifast-${version}";
|
2014-06-10 23:38:45 +02:00
|
|
|
version = "14.5";
|
2014-04-28 20:46:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-06-10 23:38:45 +02:00
|
|
|
url = "http://people.cs.kuleuven.be/~bart.jacobs/verifast/${name}-x64.tar.gz";
|
|
|
|
sha256 = "03y1s6s2j9vqgiad0vbxriipsypxaylxxd3q36n9rvrc3lf9xra9";
|
2014-04-28 20:46:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontStrip = true;
|
2014-06-10 23:38:45 +02:00
|
|
|
phases = "unpackPhase installPhase";
|
2014-04-28 20:46:16 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -R bin $out/libexec
|
|
|
|
|
2014-06-10 23:38:45 +02:00
|
|
|
${patchExe "$out/libexec/verifast-core"}
|
|
|
|
${patchExe "$out/libexec/vfide-core"}
|
2014-04-28 20:46:16 +02:00
|
|
|
ln -s $out/libexec/verifast-core $out/bin/verifast
|
|
|
|
ln -s $out/libexec/vfide-core $out/bin/vfide
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Verification for C and Java programs via separation logic";
|
|
|
|
homepage = "http://people.cs.kuleuven.be/~bart.jacobs/verifast/";
|
2014-05-02 02:09:24 +02:00
|
|
|
license = stdenv.lib.licenses.msrla;
|
2014-06-10 23:38:45 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-04-28 20:46:16 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|