git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32027 from andir/gcc-7-tracefilegen

tracefilegen: 2015-11-14 -> 2017-05-13

commit8136800f78c431f170a39b9ed6f46ba0f2449b80 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 25 Nov 2017, 14:19 (9 years ago) parent03207c04bda3c4
3 files changed+29−26
pkgs/development/tools/analysis/garcosim/tracefilegen/builder.sh−17 pkgs/development/tools/analysis/garcosim/tracefilegen/default.nix+16−9 pkgs/development/tools/analysis/garcosim/tracefilegen/gcc7.patch+13
pkgs/development/tools/analysis/garcosim/tracefilegen/builder.shdeleted−17
@@ -1,17 +0,0 @@
1−source "$stdenv"/setup
2−
3−cp --recursive "$src" ./
4−
5−chmod --recursive u=rwx ./"$(basename "$src")"
6−
7−cd ./"$(basename "$src")"
8−
9−cmake ./
10−
11−make
12−
13−mkdir --parents "$out"/bin
14−cp ./TraceFileGen "$out"/bin
15−
16−mkdir --parents "$out"/share/doc/"$name"/html
17−cp --recursive ./Documentation/html/* "$out/share/doc/$name/html/"
pkgs/development/tools/analysis/garcosim/tracefilegen/default.nix+16−9
@@ -1,22 +1,29 @@
1−{ stdenv, fetchgit, cmake }:
1+{ stdenv, fetchFromGitHub, cmake }:
22
33stdenv.mkDerivation rec {
44
5− name = "tracefilegen-2015-11-14";
5+ name = "tracefilegen-2017-05-13";
66
7− src = fetchgit {
8− url = "https://github.com/GarCoSim/TraceFileGen.git";
9− rev = "4acf75b142683cc475c6b1c841a221db0753b404";
10− sha256 = "0mh661l9d1lczv0mr2y9swzqqlwikyqiv1hdd71r9v8cvm54y5ij";
7+ src = fetchFromGitHub {
8+ owner = "GarCoSim";
9+ repo = "TraceFileGen";
10+ rev = "0ebfd1fdb54079d4bdeaa81fc9267ecb9f016d60";
11+ sha256 = "1gsx18ksgz5gwl3v62vgrmhxc0wc99i74qwhpn0h57zllk41drjc";
1112 };
1213
13− buildInputs = [ cmake ];
14+ nativeBuildInputs = [ cmake ];
1415
15− builder = ./builder.sh;
16+ patches = [ ./gcc7.patch ];
17+
18+ installPhase = ''
19+ install -Dm755 TraceFileGen $out/bin/TraceFileGen
20+ mkdir -p $out/share/doc/${name}/
21+ cp -ar $src/Documentation/html $out/share/doc/${name}/.
22+ '';
1623
1724 meta = with stdenv.lib; {
1825 description = "Automatically generate all types of basic memory management operations and write into trace files";
19− homepage = https://github.com/GarCoSim;
26+ homepage = https://github.com/GarCoSim;
2027 maintainers = [ maintainers.cmcdragonkai ];
2128 license = licenses.gpl2;
2229 platforms = platforms.linux;
pkgs/development/tools/analysis/garcosim/tracefilegen/gcc7.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/Utils/Logger.cpp b/Utils/Logger.cpp
2+index 747cd63..e3efdf1 100644
3+--- a/Utils/Logger.cpp
4++++ b/Utils/Logger.cpp
5+@@ -29,7 +29,7 @@ Logger::Logger(char* tracepath) {
6+ trace = fopen(tracepath, "w");
7+
8+ // dot file is not used, set null as default value
9+- dot = '\0';
10++ dot = nullptr;
11+ //dot = fopen("gcKons.dot", "w");
12+ //fprintf(dot,"digraph G {\n");
13+ }