httpie-desktop: add missing desktop entry (#343859)

This commit is contained in:
Pol Dellaiera 2024-09-26 22:11:11 +02:00 committed by GitHub
commit 19f5f8abbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
lib,
fetchurl,
}:
appimageTools.wrapType2 rec {
pname = "httpie-desktop";
version = "2024.1.2";
@ -12,6 +13,19 @@ appimageTools.wrapType2 rec {
hash = "sha256-OOP1l7J2BgO3nOPSipxfwfN/lOUsl80UzYMBosyBHrM=";
};
extraInstallCommands =
let
contents = appimageTools.extractType2 { inherit pname version src; };
in
''
mkdir -p $out/share
cp -r ${contents}/usr/share/* $out/share
chmod +w $out/share
install -Dm644 ${contents}/httpie.desktop $out/share/applications/httpie.desktop
substituteInPlace $out/share/applications/httpie.desktop \
--replace-fail 'Exec=AppRun' 'Exec=httpie-desktop'
'';
meta = with lib; {
description = "Cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs";
homepage = "https://github.com/httpie/desktop";