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

38 lines
1.1 KiB
Nix
Raw Normal View History

2016-03-12 11:12:44 +00:00
{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
2016-03-12 11:12:44 +00:00
let
binPath = stdenv.lib.makeBinPath [ gcc ];
in stdenv.mkDerivation rec {
name = "spin-${version}";
2016-02-27 11:09:44 +00:00
version = "6.4.5";
url-version = stdenv.lib.replaceChars ["."] [""] version;
src = fetchurl {
2016-02-27 11:09:44 +00:00
# The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL.
# Dropbox mirror from developers:
# https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AAANRpxsSyWC7iHZB-XgBwJFa/spin645.tar.gz?raw=1";
sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224";
};
2016-03-12 11:12:44 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ yacc ];
sourceRoot = "Spin/Src${version}";
2016-03-12 11:12:44 +00:00
installPhase = ''
install -D spin $out/bin/spin
wrapProgram $out/bin/spin \
--prefix PATH : ${binPath}
'';
meta = with stdenv.lib; {
description = "Formal verification tool for distributed software systems";
homepage = http://spinroot.com/;
2016-02-27 11:09:44 +00:00
license = licenses.free;
platforms = platforms.linux;
maintainers = with maintainers; [ mornfall pSub ];
};
}