nixpkgs/pkgs/applications/science/logic/nuXmv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-31 04:40:23 +00:00
{ lib, stdenv, fetchurl, gmp, makeWrapper }:
2022-03-15 03:07:51 +00:00
stdenv.mkDerivation rec {
pname = "nuXmv";
version = "2.0.0";
src = fetchurl {
2022-03-31 04:40:23 +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-15 03:07:51 +00:00
};
2022-03-31 04:40:23 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optionals stdenv.isDarwin [ gmp ];
2022-03-15 03:07:51 +00:00
installPhase= ''
runHook preInstall
install -Dm755 -t $out/bin ./bin/nuXmv
runHook postInstall
'';
2022-03-31 04:40:23 +00:00
postFixup = lib.optionalString stdenv.isDarwin ''
wrapProgram $out/bin/nuXmv --prefix DYLD_LIBRARY_PATH : ${gmp}/lib
'';
2022-03-15 03:07:51 +00:00
meta = with lib; {
description = "Symbolic model checker for analysis of finite and infinite state systems";
homepage = "https://nuxmv.fbk.eu/pmwiki.php";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2022-03-15 03:07:51 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ siraben ];
2022-03-31 04:40:23 +00:00
platforms = [ "x86_64-linux" "x86_64-darwin" ];
2022-03-15 03:07:51 +00:00
};
}