cflow: 1.7 -> 1.8

authored by R. Ryantm and committed by Weijia Wang 35bf41ff 5fd87a28

+8 -7
+8 -7
pkgs/by-name/cf/cflow/package.nix
··· 8 9 stdenv.mkDerivation rec { 10 pname = "cflow"; 11 - version = "1.7"; 12 13 src = fetchurl { 14 - url = "mirror://gnu/${pname}/${pname}-${version}.tar.bz2"; 15 - sha256 = "sha256-0BFGyvkAHiZhM0F8KoJYpktfwW/LCCoU9lKCBNDJcIY="; 16 }; 17 18 - patchPhase = '' 19 - substituteInPlace "src/cflow.h" \ 20 - --replace "/usr/bin/cpp" \ 21 - "$(cat ${stdenv.cc}/nix-support/orig-cc)/bin/cpp" 22 ''; 23 24 buildInputs = [
··· 8 9 stdenv.mkDerivation rec { 10 pname = "cflow"; 11 + version = "1.8"; 12 13 src = fetchurl { 14 + url = "mirror://gnu/cflow/cflow-${version}.tar.bz2"; 15 + hash = "sha256-gyFie1W2x4d/akP8xvn4RqlLFHaggaA1Rl96eNNJmrg="; 16 }; 17 18 + postPatch = '' 19 + substituteInPlace "config.h.in" \ 20 + --replace-fail "[[__maybe_unused__]]" "__attribute__((__unused__))" 21 + substituteInPlace "src/cflow.h" \ 22 + --replace-fail "/usr/bin/cpp" "${stdenv.cc.cc}/bin/cpp" 23 ''; 24 25 buildInputs = [