spin: add gcc to path

+11 -3
+11 -3
pkgs/development/tools/analysis/spin/default.nix
··· 1 - {stdenv, fetchurl, yacc }: 1 + { stdenv, fetchurl, makeWrapper, yacc, gcc }: 2 + 3 + let 4 + binPath = stdenv.lib.makeBinPath [ gcc ]; 2 5 3 - stdenv.mkDerivation rec { 6 + in stdenv.mkDerivation rec { 4 7 name = "spin-${version}"; 5 8 version = "6.4.5"; 6 9 url-version = stdenv.lib.replaceChars ["."] [""] version; ··· 13 16 sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224"; 14 17 }; 15 18 19 + nativeBuildInputs = [ makeWrapper ]; 16 20 buildInputs = [ yacc ]; 17 21 18 22 sourceRoot = "Spin/Src${version}"; 19 23 20 - installPhase = "install -D spin $out/bin/spin"; 24 + installPhase = '' 25 + install -D spin $out/bin/spin 26 + wrapProgram $out/bin/spin \ 27 + --prefix PATH : ${binPath} 28 + ''; 21 29 22 30 meta = with stdenv.lib; { 23 31 description = "Formal verification tool for distributed software systems";