git.iko.soy/typeable/nixpkgs
on master help sign in
spin: add gcc to path
commit2a288ad435be06b68ff90bc768bc512b9094d29a authorNikolay Amiantov <ab@fmap.me> dateSat 12 Mar 2016, 14:12 (11 years ago) parent39ed265
1 file changed+11−3
pkgs/development/tools/analysis/spin/default.nix+11−3
pkgs/development/tools/analysis/spin/default.nix+11−3
@@ -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";