mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
httpie-desktop: add missing desktop entry (#343859)
This commit is contained in:
commit
19f5f8abbf
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user