12 stdenv.mkDerivation rec {
13 pname = "time-ghc-modules";
16 src = fetchFromGitHub {
18 repo = "time-ghc-modules";
20 sha256 = "sha256-/PhJAhP3KCWFyeSk8e5JV0cpBueH/eVDwQTMZSnnZCo=";
23 nativeBuildInputs = [makeWrapper];
29 cp ./time-ghc-modules $out/bin/time-ghc-modules
30 wrapProgram $out/bin/time-ghc-modules --prefix PATH : ${lib.makeBinPath [ sqlite python3 coreutils findutils gnused ]} \
31 --set PROCESS_SCRIPT $out/lib/process \
32 --set HTML_FILE $out/lib/index.html
41 install -m 444 ./dist/index.html $out/lib
42 install ./scripts/process $out/lib
48 description = "Analyze GHC .dump-timings files";
49 mainProgram = "time-ghc-modules";
50 homepage = "https://github.com/codedownio/time-ghc-modules";
51 license = licenses.mit;
52 maintainers = [ maintainers.thomasjm ];
53 platforms = platforms.all;