nixpkgs/pkgs/development/tools/analysis/spin/default.nix

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

43 lines
978 B
Nix
Raw Normal View History

2022-02-08 17:32:52 +00:00
{ stdenv, lib, fetchFromGitHub, makeWrapper, bison, gcc, tk, swarm, graphviz }:
2016-03-12 11:12:44 +00:00
let
2022-02-08 17:32:52 +00:00
binPath = lib.makeBinPath [ gcc graphviz tk swarm ];
in
2016-03-12 11:12:44 +00:00
2022-02-08 17:32:52 +00:00
stdenv.mkDerivation rec {
pname = "spin";
2022-02-08 17:32:52 +00:00
version = "6.5.2";
src = fetchFromGitHub {
owner = "nimble-code";
repo = "Spin";
rev = "version-${version}";
sha256 = "sha256-drvQXfDZCZRycBZt/VNngy8zs4XVJg+d1b4dQXVcyFU=";
};
2016-03-12 11:12:44 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bison ];
2022-02-08 17:32:52 +00:00
sourceRoot = "source/Src";
preBuild = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
'';
2022-02-08 17:32:52 +00:00
enableParallelBuilding = true;
makeFlags = [ "DESTDIR=$(out)" ];
2019-01-18 16:23:44 +00:00
2022-02-08 17:32:52 +00:00
postInstall = ''
wrapProgram $out/bin/spin --prefix PATH : ${binPath}
2016-03-12 11:12:44 +00:00
'';
meta = with lib; {
description = "Formal verification tool for distributed software systems";
2021-04-18 17:10:52 +00:00
homepage = "https://spinroot.com/";
2022-02-08 17:32:52 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub siraben ];
};
}