uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
50
pkgs/applications/science/logic/verifast/default.nix
Normal file
50
pkgs/applications/science/logic/verifast/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchurl, gtk2, gdk-pixbuf, atk, pango, glib, cairo, freetype
|
||||
, fontconfig, libxml2, gnome2 }:
|
||||
|
||||
let
|
||||
|
||||
libPath = lib.makeLibraryPath
|
||||
[ stdenv.cc.libc stdenv.cc.cc gtk2 gdk-pixbuf atk pango glib cairo
|
||||
freetype fontconfig libxml2 gnome2.gtksourceview
|
||||
] + ":${stdenv.cc.cc.lib}/lib64:$out/libexec";
|
||||
|
||||
patchExe = x: ''
|
||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath ${libPath} ${x}
|
||||
'';
|
||||
|
||||
patchLib = x: ''
|
||||
patchelf --set-rpath ${libPath} ${x}
|
||||
'';
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "verifast";
|
||||
version = "21.04";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/verifast/verifast/releases/download/${version}/${pname}-${version}-linux.tar.gz";
|
||||
sha256 = "sha256-PlRsf4wFXoM+E+60SbeKzs/RZK0HNVirX47AnI6NeYM=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontStrip = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -R bin $out/libexec
|
||||
|
||||
${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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Verification for C and Java programs via separation logic";
|
||||
homepage = "https://people.cs.kuleuven.be/~bart.jacobs/verifast/";
|
||||
license = lib.licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ lib.maintainers.thoughtpolice ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue