@@ -1,6 +1,9 @@
1−{stdenv, fetchurl, yacc }:
1+{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
22
3−stdenv.mkDerivation rec {
3+let
4+ binPath = stdenv.lib.makeBinPath [ gcc ];
5+
6+in stdenv.mkDerivation rec {
47 name = "spin-${version}";
58 version = "6.4.5";
69 url-version = stdenv.lib.replaceChars ["."] [""] version;
@@ -13,11 +16,16 @@ stdenv.mkDerivation rec {
1316 sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224";
1417 };
1518
19+ nativeBuildInputs = [ makeWrapper ];
1620 buildInputs = [ yacc ];
1721
1822 sourceRoot = "Spin/Src${version}";
1923
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+ '';
2129
2230 meta = with stdenv.lib; {
2331 description = "Formal verification tool for distributed software systems";