chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ij / ijhttp / package.nix
blobe6eabf9223af22a6973bd944f24fca4a67ed4247
2   fetchurl,
3   jdk17_headless,
4   lib,
5   makeWrapper,
6   stdenvNoCC,
7   unzip,
8 }:
10 stdenvNoCC.mkDerivation (finalAttrs: {
11   pname = "ijhttp";
12   version = "241.14494.240";
14   src = fetchurl {
15     url = "https://download.jetbrains.com/resources/intellij/http-client/${finalAttrs.version}/intellij-http-client.zip";
16     hash = "sha256-PecGB+gwdQGQbWd401qeCFLbmr9fmIBd7lGwLlRLaGg=";
17   };
19   nativeBuildInputs = [
20     makeWrapper
21     unzip
22   ];
24   installPhase = ''
25     runHook preInstall
27     mkdir -p $out/lib
28     mv lib $out/lib
29     install -Dm755 ijhttp $out/lib/ijhttp
30     makeWrapper $out/lib/ijhttp $out/bin/ijhttp \
31       --set JAVA_HOME ${jdk17_headless.home}
33     runHook postInstall
34   '';
36   meta = {
37     description = "Run HTTP requests from a terminal, e.g. for HTTP request testing";
38     homepage = "https://www.jetbrains.com/help/idea/http-client-cli.html";
39     license = lib.licenses.unfree;
40     mainProgram = "ijhttp";
41     platforms = lib.platforms.all;
42     sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
43   };