nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 1.0 kB view raw
1{ 2 fetchurl, 3 jdk17_headless, 4 lib, 5 makeWrapper, 6 stdenvNoCC, 7 unzip, 8}: 9 10stdenvNoCC.mkDerivation (finalAttrs: { 11 pname = "ijhttp"; 12 version = "252.23892.409"; 13 14 src = fetchurl { 15 url = "https://download.jetbrains.com/resources/intellij/http-client/${finalAttrs.version}/intellij-http-client.zip"; 16 hash = "sha256-yEEDG9NRYYj8K7+32FB3bJ+qPrVUL0/MMfPoBlol418="; 17 }; 18 19 nativeBuildInputs = [ 20 makeWrapper 21 unzip 22 ]; 23 24 installPhase = '' 25 runHook preInstall 26 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} 32 33 runHook postInstall 34 ''; 35 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 }; 44})