Skip to content

Commit

Permalink
fix(overlays): httpie-desktop pkg build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Dec 3, 2024
1 parent b0abd5e commit be2ac44
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions overlays/httpie-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@ with lib;

pname = "httpie-desktop";
version = "2024.1.2";
name = "${pname}-${version}";

src = fetchurl {
url = "https://github.com/httpie/desktop/releases/download/v${version}/HTTPie-${version}.AppImage";
sha256 = "sha256-OOP1l7J2BgO3nOPSipxfwfN/lOUsl80UzYMBosyBHrM=";
};

contents = appimageTools.extractType2 {inherit name src;};
contents = appimageTools.extractType2 {inherit pname version src;};
in
appimageTools.wrapType2 rec {
inherit name src;
inherit pname version src;

extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D ${contents}/httpie.desktop $out/share/applications/${pname}.desktop
install -m 444 -D ${contents}/httpie.desktop $out/share/applications/httpie.desktop
install -m 444 -D ${contents}/httpie.png $out/share/icons/hicolor/512x512/apps/httpie.png
substituteInPlace $out/share/applications/${pname}.desktop \
substituteInPlace $out/share/applications/httpie.desktop \
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U'
'';

Expand Down

0 comments on commit be2ac44

Please sign in to comment.