time-ghc-modules: init at 1.0.0 (#140847)

* time-ghc-modules: init at 1.0.0
* Move non-binaries out of the bin folder

authored by Tom McLaughlin and committed by GitHub 06e0a8e4 f23731c7

+56
+54
pkgs/development/tools/time-ghc-modules/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , makeWrapper 5 + , sqlite 6 + , python3 7 + , coreutils 8 + , findutils 9 + , gnused 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "time-ghc-modules"; 14 + version = "1.0.1"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "codedownio"; 18 + repo = "time-ghc-modules"; 19 + rev = version; 20 + sha256 = "0s6540gllhjn7366inhwa70rdnngnhbi07jn1h6x8a0pi71wdfm9"; 21 + }; 22 + 23 + nativeBuildInputs = [makeWrapper]; 24 + 25 + buildPhase = '' 26 + runHook preBuild 27 + 28 + mkdir -p $out/bin 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 33 + 34 + runHook postBuild 35 + ''; 36 + 37 + installPhase = '' 38 + runHook preInstall 39 + 40 + mkdir -p $out/lib 41 + install -m 444 ./dist/index.html $out/lib 42 + install ./scripts/process $out/lib 43 + 44 + runHook postInstall 45 + ''; 46 + 47 + meta = with lib; { 48 + description = "Analyze GHC .dump-timings files"; 49 + homepage = "https://github.com/codedownio/time-ghc-modules"; 50 + license = licenses.mit; 51 + maintainers = [ maintainers.thomasjm ]; 52 + platforms = platforms.all; 53 + }; 54 + }
+2
pkgs/top-level/all-packages.nix
··· 15050 15050 inherit (darwin.apple_sdk.frameworks) Security CoreServices; 15051 15051 }; 15052 15052 15053 + time-ghc-modules = callPackage ../development/tools/time-ghc-modules { }; 15054 + 15053 15055 tflint = callPackage ../development/tools/analysis/tflint { }; 15054 15056 15055 15057 tfsec = callPackage ../development/tools/analysis/tfsec { };