git.iko.soy/typeable/nixpkgs
on master help sign in
spin: add ispin with tools
commitef06c7db8f0f64d856c6cc641344036a1fcd7952 authorNikolay Amiantov <ab@fmap.me> dateSat 26 Mar 2016, 11:44 (11 years ago) parentf273dd2
1 file changed+8−2
pkgs/development/tools/analysis/spin/default.nix+8−2
pkgs/development/tools/analysis/spin/default.nix+8−2
@@ -1,7 +1,9 @@
1−{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
1+{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
2+, withISpin ? true, tk, swarm, graphviz }:
23
34let
45 binPath = stdenv.lib.makeBinPath [ gcc ];
6+ ibinPath = stdenv.lib.makeBinPath [ gcc tk swarm graphviz tk ];
57
68in stdenv.mkDerivation rec {
79 name = "spin-${version}";
@@ -22,9 +24,13 @@ in stdenv.mkDerivation rec {
2224 sourceRoot = "Spin/Src${version}";
2325
2426 installPhase = ''
25− install -D spin $out/bin/spin
27+ install -Dm755 spin $out/bin/spin
2628 wrapProgram $out/bin/spin \
2729 --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}"
2834 '';
2935
3036 meta = with stdenv.lib; {