1 { stdenv, lib, fetchFromGitHub, makeWrapper, bison, gcc, tk, swarm, graphviz }:
4 binPath = lib.makeBinPath [ gcc graphviz tk swarm ];
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
12 owner = "nimble-code";
14 rev = "version-${version}";
15 sha256 = "sha256-drvQXfDZCZRycBZt/VNngy8zs4XVJg+d1b4dQXVcyFU=";
18 nativeBuildInputs = [ makeWrapper ];
19 buildInputs = [ bison ];
21 sourceRoot = "source/Src";
25 mkdir -p $out/share/man/man1
28 enableParallelBuilding = true;
29 makeFlags = [ "DESTDIR=$(out)" ];
32 wrapProgram $out/bin/spin --prefix PATH : ${binPath}
36 description = "Formal verification tool for distributed software systems";
37 homepage = "https://spinroot.com/";
38 license = licenses.bsd3;
39 platforms = platforms.unix;
40 maintainers = with maintainers; [ pSub siraben ];