@@ -0,0 +1,28 @@
1+{ stdenv
2+, fetchurl
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "rankwidth";
7+ version = "0.7";
8+ name = "${pname}-${version}";
9+
10+ src = fetchurl {
11+ url = "http://mirrors.mit.edu/sage/spkg/upstream/rw/rw-${version}.tar.gz";
12+ sha256 = "1rv2v42x2506x7f10349m1wpmmfxrv9l032bkminni2gbip9cjg0";
13+ };
14+
15+ configureFlags = [
16+ "--enable-executable=no" # no igraph dependency
17+ ];
18+
19+ # check phase is empty for now (as of version 0.7)
20+ doCheck = true;
21+
22+ meta = with stdenv.lib; {
23+ description = "Calculates rank-width and rank-decompositions";
24+ license = with licenses; [ gpl2Plus ];
25+ maintainers = with maintainers; [ timokau ];
26+ platforms = platforms.linux;
27+ };
28+}