2022-04-03 18:54:34 +00:00
|
|
|
{ lib, stdenv, fetchurl, gmp, makeWrapper }:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nuXmv";
|
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-04-03 18:54:34 +00:00
|
|
|
url = "https://es-static.fbk.eu/tools/nuxmv/downloads/nuXmv-${version}-${if stdenv.isDarwin then "macosx64" else "linux64"}.tar.gz";
|
|
|
|
sha256 = if stdenv.isDarwin
|
|
|
|
then "sha256-48I+FhJUUam1nMCMMM47CwGO82BYsNz0eHDHXBfqO2E="
|
|
|
|
else "sha256-Gf+QgAjTrysZj7qTtt1wcQPganDtO0YtRY4ykhLPzVo=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ gmp ];
|
2022-03-30 09:31:56 +00:00
|
|
|
installPhase= ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin ./bin/nuXmv
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
postFixup = lib.optionalString stdenv.isDarwin ''
|
|
|
|
wrapProgram $out/bin/nuXmv --prefix DYLD_LIBRARY_PATH : ${gmp}/lib
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Symbolic model checker for analysis of finite and infinite state systems";
|
|
|
|
homepage = "https://nuxmv.fbk.eu/pmwiki.php";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2022-04-03 18:54:34 +00:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|