saw-tools: format

This commit is contained in:
Thomas Gerbet
2024-12-14 12:59:09 +01:00
parent 144310f62d
commit 13342caa64
+27 -16
View File
@@ -1,26 +1,37 @@
{ lib, stdenv, fetchurl, gmp4, ncurses, zlib, clang }:
{
lib,
stdenv,
fetchurl,
gmp4,
ncurses,
zlib,
clang,
}:
let
libPath = lib.makeLibraryPath
[ stdenv.cc.libc
libPath =
lib.makeLibraryPath [
stdenv.cc.libc
stdenv.cc.cc
gmp4
ncurses
zlib
] + ":${lib.getLib stdenv.cc.cc}/lib64";
]
+ ":${lib.getLib stdenv.cc.cc}/lib64";
url = "https://github.com/GaloisInc/saw-script/releases/download";
saw-bin =
if stdenv.hostPlatform.system == "i686-linux"
then fetchurl {
url = url + "/v0.1.1-dev/saw-0.1.1-dev-2015-07-31-CentOS6-32.tar.gz";
sha256 = "126iag5nnvndi78c921z7vjrjfwcspn1hlxwwhzmqm4rvbhhr9v9";
}
else fetchurl {
url = url + "/v0.1.1-dev/saw-0.1.1-dev-2015-07-31-CentOS6-64.tar.gz";
sha256 = "07gyf319v6ama6n1aj96403as04bixi8mbisfy7f7va689zklflr";
};
if stdenv.hostPlatform.system == "i686-linux" then
fetchurl {
url = url + "/v0.1.1-dev/saw-0.1.1-dev-2015-07-31-CentOS6-32.tar.gz";
sha256 = "126iag5nnvndi78c921z7vjrjfwcspn1hlxwwhzmqm4rvbhhr9v9";
}
else
fetchurl {
url = url + "/v0.1.1-dev/saw-0.1.1-dev-2015-07-31-CentOS6-64.tar.gz";
sha256 = "07gyf319v6ama6n1aj96403as04bixi8mbisfy7f7va689zklflr";
};
in
stdenv.mkDerivation {
pname = "saw-tools";
@@ -50,10 +61,10 @@ stdenv.mkDerivation {
meta = {
description = "Tools for software verification and analysis";
homepage = "https://saw.galois.com";
homepage = "https://saw.galois.com";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}