81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
42 lines
978 B
Nix
42 lines
978 B
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, bison, gcc, tk, swarm, graphviz }:
|
|
|
|
let
|
|
binPath = lib.makeBinPath [ gcc graphviz tk swarm ];
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spin";
|
|
version = "6.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nimble-code";
|
|
repo = "Spin";
|
|
rev = "version-${version}";
|
|
sha256 = "sha256-drvQXfDZCZRycBZt/VNngy8zs4XVJg+d1b4dQXVcyFU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bison ];
|
|
|
|
sourceRoot = "source/Src";
|
|
|
|
preBuild = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/man/man1
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/spin --prefix PATH : ${binPath}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Formal verification tool for distributed software systems";
|
|
homepage = "https://spinroot.com/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub siraben ];
|
|
};
|
|
}
|