Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 31 lines 764 B view raw
1{ stdenv, lib, fetchFromGitHub, 2 pkgconfig, autoreconfHook, 3 flex, yacc, zlib, libxml2 }: 4 5stdenv.mkDerivation rec { 6 pname = "igraph"; 7 version = "0.7.1"; 8 9 src = fetchFromGitHub { 10 owner = "igraph"; 11 repo = pname; 12 rev = version; 13 sha256 = "1wsy0r511gk069il6iqjs27q8cjvqz20gf0a7inybx1bw84845z8"; 14 }; 15 16 nativeBuildInputs = [ pkgconfig autoreconfHook ]; 17 buildInputs = [ flex yacc zlib libxml2 ]; 18 19 # This file is normally generated by igraph's bootstrap.sh, but we can do it 20 # ourselves. ~ C. 21 postPatch = '' 22 echo "${version}" > VERSION 23 ''; 24 25 meta = { 26 description = "The network analysis package"; 27 homepage = http://igraph.org/; 28 license = lib.licenses.gpl2; 29 maintainers = [ lib.maintainers.MostAwesomeDude ]; 30 }; 31}