From f3c31e4ad7fab36e151f3a2e207fafb1eda1a787 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 28 Aug 2024 20:36:04 -0700 Subject: hi --- home/ebisu/meta/network/tools/http/default.nix | 8 +++++++ .../meta/network/tools/http/httpie/default.nix | 6 +++++ home/ebisu/meta/network/tools/http/wget.nix | 8 +++++++ .../ebisu/meta/network/tools/http/yaak/default.nix | 28 ++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 home/ebisu/meta/network/tools/http/default.nix create mode 100644 home/ebisu/meta/network/tools/http/httpie/default.nix create mode 100644 home/ebisu/meta/network/tools/http/wget.nix create mode 100644 home/ebisu/meta/network/tools/http/yaak/default.nix (limited to 'home/ebisu/meta/network/tools/http') diff --git a/home/ebisu/meta/network/tools/http/default.nix b/home/ebisu/meta/network/tools/http/default.nix new file mode 100644 index 0000000..59d6efc --- /dev/null +++ b/home/ebisu/meta/network/tools/http/default.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + imports = [ + ./httpie + ./yaak + ./wget.nix + ]; +} diff --git a/home/ebisu/meta/network/tools/http/httpie/default.nix b/home/ebisu/meta/network/tools/http/httpie/default.nix new file mode 100644 index 0000000..b917245 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/httpie/default.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ + httpie + httpie-desktop + ]; +} diff --git a/home/ebisu/meta/network/tools/http/wget.nix b/home/ebisu/meta/network/tools/http/wget.nix new file mode 100644 index 0000000..c5d2936 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/wget.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.wget ]; + + xdg.configFile."wget/wgetrc".text = '' + hsts-file=~/.cache/wget-hsts + ''; +} diff --git a/home/ebisu/meta/network/tools/http/yaak/default.nix b/home/ebisu/meta/network/tools/http/yaak/default.nix new file mode 100644 index 0000000..05bf0e7 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/yaak/default.nix @@ -0,0 +1,28 @@ +{ pkgs, lib, ... }: +let + yaak-archive = pkgs.fetchzip { + url = "https://releases.yaak.app/releases/2024.6.6/yaak_2024.6.6_amd64.AppImage.tar.gz"; + hash = "sha256-Qnc4RlQmQWHARreQ69jAshq57bZ56Yt5a35jpTjGwNU="; + }; + + version = "2024.6.6"; + + # https://discourse.nixos.org/t/creating-a-nix-derivation-for-an-appimage/31927 + yaak = pkgs.appimageTools.wrapType2 { + pname = "yaak"; + version = version; + src = "${yaak-archive}/yaak_${version}_amd64.AppImage"; + + meta = with lib; { + description = "Play with APIs, intuitively"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + homepage = "https://yaak.app/"; + license = licenses.unfree; + platforms = platforms.linux; + mainProgram = "yaak"; + }; + }; +in +{ + home.packages = [ yaak ]; +} -- cgit v1.2.3