tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
spin: add ispin with tools
Nikolay Amiantov
10 years ago
ef06c7db
f273dd22
+8
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
analysis
spin
default.nix
+8
-2
pkgs/development/tools/analysis/spin/default.nix
reviewed
···
1
1
-
{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
1
1
+
{ stdenv, lib, fetchurl, makeWrapper, yacc, gcc
2
2
+
, withISpin ? true, tk, swarm, graphviz }:
2
3
3
4
let
4
5
binPath = stdenv.lib.makeBinPath [ gcc ];
6
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
25
-
install -D spin $out/bin/spin
27
27
+
install -Dm755 spin $out/bin/spin
26
28
wrapProgram $out/bin/spin \
27
29
--prefix PATH : ${binPath}
30
30
+
'' + lib.optionalString withISpin ''
31
31
+
install -Dm755 ../iSpin/ispin.tcl $out/bin/ispin
32
32
+
wrapProgram $out/bin/ispin \
33
33
+
--prefix PATH ':' "$out/bin:${ibinPath}"
28
34
'';
29
35
30
36
meta = with stdenv.lib; {