summaryrefslogtreecommitdiff
path: root/home/ebisu/meta/network/tools/http
diff options
context:
space:
mode:
Diffstat (limited to 'home/ebisu/meta/network/tools/http')
-rw-r--r--home/ebisu/meta/network/tools/http/default.nix8
-rw-r--r--home/ebisu/meta/network/tools/http/httpie/default.nix6
-rw-r--r--home/ebisu/meta/network/tools/http/wget.nix8
-rw-r--r--home/ebisu/meta/network/tools/http/yaak/default.nix28
4 files changed, 50 insertions, 0 deletions
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 ];
+}