@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "swarm-${version}";
5+ version = "3.1";
6+
7+ src = fetchurl {
8+ url = "http://www.spinroot.com/swarm/swarm${version}.tar";
9+ sha256 = "12hi6wy0v0jfbrmgfxpnz7vxfzz3g1c6z7dj8p8kc2nm0q5bii47";
10+ };
11+
12+ sourceRoot = ".";
13+
14+ buildPhase = ''
15+ gcc -O2 -lm swarm.c -o swarm
16+ '';
17+
18+ installPhase = ''
19+ install -Dm755 swarm $out/bin/swarm
20+ install -Dm644 swarm.1 $out/share/man/man1/swarm.1
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "Verification script generator for Spin";
25+ homepage = http://spinroot.com/;
26+ license = licenses.free;
27+ platforms = platforms.linux;
28+ maintainers = with maintainers; [ abbradar ];
29+ };
30+}