nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 712 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "maxflow"; 10 version = "3.0.5"; 11 12 src = fetchFromGitHub { 13 owner = "gerddie"; 14 repo = "maxflow"; 15 rev = finalAttrs.version; 16 hash = "sha256-a84SxGMnfBEaoMEeeIFffTOtErSN5yzZBrAUDjkalGY="; 17 }; 18 19 patches = [ 20 # https://github.com/gerddie/maxflow/pull/7 21 ./0001-Raise-minimum-CMake-version.patch 22 ]; 23 24 nativeBuildInputs = [ cmake ]; 25 26 meta = { 27 description = "Software for computing mincut/maxflow in a graph"; 28 homepage = "https://github.com/gerddie/maxflow"; 29 license = lib.licenses.gpl3Plus; 30 platforms = lib.platforms.all; 31 maintainers = [ lib.maintainers.tadfisher ]; 32 }; 33})