chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ht / httpie-desktop / package.nix
blob05b943a39608bcc13549b43f390fdc6e5511805d
2   appimageTools,
3   lib,
4   fetchurl,
5 }:
7 appimageTools.wrapType2 rec {
8   pname = "httpie-desktop";
9   version = "2024.1.2";
11   src = fetchurl {
12     url = "https://github.com/httpie/desktop/releases/download/v${version}/HTTPie-${version}.AppImage";
13     hash = "sha256-OOP1l7J2BgO3nOPSipxfwfN/lOUsl80UzYMBosyBHrM=";
14   };
16   extraInstallCommands =
17     let
18       contents = appimageTools.extractType2 { inherit pname version src; };
19     in
20     ''
21       mkdir -p $out/share
22       cp -r ${contents}/usr/share/* $out/share
23       chmod +w $out/share
24       install -Dm644 ${contents}/httpie.desktop $out/share/applications/httpie.desktop
25       substituteInPlace $out/share/applications/httpie.desktop \
26         --replace-fail 'Exec=AppRun' 'Exec=httpie-desktop'
27     '';
29   meta = with lib; {
30     description = "Cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs";
31     homepage = "https://github.com/httpie/desktop";
32     license = licenses.unfree;
33     maintainers = with maintainers; [ luftmensch-luftmensch ];
34     mainProgram = "httpie-desktop";
35     platforms = [ "x86_64-linux" ];
36   };