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 = "${src.name}/Src";
25 mkdir -p $out/share/man/man1
28 enableParallelBuilding = true;
29 makeFlags = [ "DESTDIR=$(out)" ];
32 wrapProgram $out/bin/spin --prefix PATH : ${binPath}
34 mkdir -p $out/share/spin
35 cp $src/optional_gui/ispin.tcl $out/share/spin
36 makeWrapper $out/share/spin/ispin.tcl $out/bin/ispin \
37 --prefix PATH : $out/bin:${binPath}
41 description = "Formal verification tool for distributed software systems";
42 homepage = "https://spinroot.com/";
43 license = licenses.bsd3;
44 platforms = platforms.unix;
45 maintainers = with maintainers; [ pSub siraben ];