lol

spin: add ispin with tools

+8 -2
+8 -2
pkgs/development/tools/analysis/spin/default.nix
··· 1 - { stdenv, fetchurl, makeWrapper, yacc, gcc }: 1 + { stdenv, lib, fetchurl, makeWrapper, yacc, gcc 2 + , withISpin ? true, tk, swarm, graphviz }: 2 3 3 4 let 4 5 binPath = stdenv.lib.makeBinPath [ gcc ]; 6 + ibinPath = stdenv.lib.makeBinPath [ gcc tk swarm graphviz tk ]; 5 7 6 8 in stdenv.mkDerivation rec { 7 9 name = "spin-${version}"; ··· 22 24 sourceRoot = "Spin/Src${version}"; 23 25 24 26 installPhase = '' 25 - install -D spin $out/bin/spin 27 + install -Dm755 spin $out/bin/spin 26 28 wrapProgram $out/bin/spin \ 27 29 --prefix PATH : ${binPath} 30 + '' + lib.optionalString withISpin '' 31 + install -Dm755 ../iSpin/ispin.tcl $out/bin/ispin 32 + wrapProgram $out/bin/ispin \ 33 + --prefix PATH ':' "$out/bin:${ibinPath}" 28 34 ''; 29 35 30 36 meta = with stdenv.lib; {