Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "maxflow"; 9 version = "3.0.5"; 10 11 src = fetchFromGitHub { 12 owner = "gerddie"; 13 repo = pname; 14 rev = version; 15 hash = "sha256-a84SxGMnfBEaoMEeeIFffTOtErSN5yzZBrAUDjkalGY="; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 20 meta = with lib; { 21 description = "Software for computing mincut/maxflow in a graph"; 22 homepage = "https://github.com/gerddie/maxflow"; 23 license = licenses.gpl3Plus; 24 platforms = platforms.all; 25 maintainers = [ maintainers.tadfisher ]; 26 }; 27}