2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, gtk2, gdk-pixbuf, atk, pango, glib, cairo, freetype
|
2014-04-28 19:46:16 +01:00
|
|
|
, fontconfig, libxml2, gnome2 }:
|
|
|
|
|
|
|
|
let
|
2018-04-25 22:54:57 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
libPath = lib.makeLibraryPath
|
2019-05-22 12:03:39 +01:00
|
|
|
[ stdenv.cc.libc stdenv.cc.cc gtk2 gdk-pixbuf atk pango glib cairo
|
2014-04-28 19:46:16 +01:00
|
|
|
freetype fontconfig libxml2 gnome2.gtksourceview
|
2018-04-25 22:54:57 +01:00
|
|
|
] + ":${stdenv.cc.cc.lib}/lib64:$out/libexec";
|
2014-04-28 19:46:16 +01:00
|
|
|
|
2014-06-10 22:38:45 +01:00
|
|
|
patchExe = x: ''
|
2014-12-17 18:11:30 +00:00
|
|
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
2014-06-10 22:38:45 +01:00
|
|
|
--set-rpath ${libPath} ${x}
|
2014-04-28 19:46:16 +01:00
|
|
|
'';
|
2018-04-25 22:54:57 +01:00
|
|
|
|
|
|
|
patchLib = x: ''
|
|
|
|
patchelf --set-rpath ${libPath} ${x}
|
|
|
|
'';
|
|
|
|
|
2014-04-28 19:46:16 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "verifast";
|
2020-02-07 20:39:41 +00:00
|
|
|
version = "19.12";
|
2014-04-28 19:46:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://github.com/verifast/verifast/releases/download/${version}/${pname}-${version}-linux.tar.gz";
|
2020-02-07 20:39:41 +00:00
|
|
|
sha256 = "169kshjq4cf4i9v92azv0xaflrnik5686w7fwcgdhd6qkbzflzl6";
|
2014-04-28 19:46:16 +01:00
|
|
|
};
|
|
|
|
|
2021-07-14 15:41:30 +01:00
|
|
|
dontConfigure = true;
|
2014-04-28 19:46:16 +01:00
|
|
|
dontStrip = true;
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -R bin $out/libexec
|
|
|
|
|
2018-04-25 22:54:57 +01:00
|
|
|
${patchExe "$out/libexec/verifast"}
|
|
|
|
${patchExe "$out/libexec/vfide"}
|
|
|
|
${patchLib "$out/libexec/libz3.so"}
|
|
|
|
ln -s $out/libexec/verifast $out/bin/verifast
|
|
|
|
ln -s $out/libexec/vfide $out/bin/vfide
|
2014-04-28 19:46:16 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Verification for C and Java programs via separation logic";
|
|
|
|
homepage = "http://people.cs.kuleuven.be/~bart.jacobs/verifast/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.mit;
|
2014-06-10 22:38:45 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-04-28 19:46:16 +01:00
|
|
|
};
|
|
|
|
}
|