tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
spin: add gcc to path
Nikolay Amiantov
10 years ago
2a288ad4
39ed265c
+11
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
analysis
spin
default.nix
+11
-3
pkgs/development/tools/analysis/spin/default.nix
···
1
-
{stdenv, fetchurl, yacc }:
0
0
0
2
3
-
stdenv.mkDerivation rec {
4
name = "spin-${version}";
5
version = "6.4.5";
6
url-version = stdenv.lib.replaceChars ["."] [""] version;
···
13
sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224";
14
};
15
0
16
buildInputs = [ yacc ];
17
18
sourceRoot = "Spin/Src${version}";
19
20
-
installPhase = "install -D spin $out/bin/spin";
0
0
0
0
21
22
meta = with stdenv.lib; {
23
description = "Formal verification tool for distributed software systems";
···
1
+
{ stdenv, fetchurl, makeWrapper, yacc, gcc }:
2
+
3
+
let
4
+
binPath = stdenv.lib.makeBinPath [ gcc ];
5
6
+
in stdenv.mkDerivation rec {
7
name = "spin-${version}";
8
version = "6.4.5";
9
url-version = stdenv.lib.replaceChars ["."] [""] version;
···
16
sha256 = "0x8qnwm2xa8f176c52mzpvnfzglxs6xgig7bcgvrvkb3xf114224";
17
};
18
19
+
nativeBuildInputs = [ makeWrapper ];
20
buildInputs = [ yacc ];
21
22
sourceRoot = "Spin/Src${version}";
23
24
+
installPhase = ''
25
+
install -D spin $out/bin/spin
26
+
wrapProgram $out/bin/spin \
27
+
--prefix PATH : ${binPath}
28
+
'';
29
30
meta = with stdenv.lib; {
31
description = "Formal verification tool for distributed software systems";