mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 05:17:28 +00:00
ijhttp: init at 241.14494.240
This commit is contained in:
parent
29327b68dd
commit
158026e0b5
44
pkgs/by-name/ij/ijhttp/package.nix
Normal file
44
pkgs/by-name/ij/ijhttp/package.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
fetchurl,
|
||||
jdk17_headless,
|
||||
lib,
|
||||
makeWrapper,
|
||||
stdenvNoCC,
|
||||
unzip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "ijhttp";
|
||||
version = "241.14494.240";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.jetbrains.com/resources/intellij/http-client/${finalAttrs.version}/intellij-http-client.zip";
|
||||
hash = "sha256-PecGB+gwdQGQbWd401qeCFLbmr9fmIBd7lGwLlRLaGg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
unzip
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib
|
||||
mv lib $out/lib
|
||||
install -Dm755 ijhttp $out/lib/ijhttp
|
||||
makeWrapper $out/lib/ijhttp $out/bin/ijhttp \
|
||||
--set JAVA_HOME ${jdk17_headless.home}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Run HTTP requests from a terminal, e.g. for HTTP request testing";
|
||||
homepage = "https://www.jetbrains.com/help/idea/http-client-cli.html";
|
||||
license = lib.licenses.unfree;
|
||||
mainProgram = "ijhttp";
|
||||
platforms = lib.platforms.all;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user