From 4c7425d144505a3f93f52a58a8f66131bf9bae63 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sat, 14 Jun 2025 20:16:57 -0400 Subject: [PATCH] oku: init at 0.1.1 NLNet Project: https://nlnet.nl/project/Oku/ Signed-off-by: Ethan Carter Edwards k --- pkgs/by-name/ok/oku/package.nix | 64 +++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pkgs/by-name/ok/oku/package.nix diff --git a/pkgs/by-name/ok/oku/package.nix b/pkgs/by-name/ok/oku/package.nix new file mode 100644 index 000000000000..cfef18cd733c --- /dev/null +++ b/pkgs/by-name/ok/oku/package.nix @@ -0,0 +1,64 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + wrapGAppsHook4, + pkg-config, + fuse, + glib, + gtk4, + hicolor-icon-theme, + libadwaita, + pango, + webkitgtk_6_0, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "oku"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "okubrowser"; + repo = "oku"; + tag = "v${finalAttrs.version}"; + hash = "sha256-utbey8DFXUWU6u2H2unNjCHE3/bwhPdrxAOApC+unGA="; + }; + + cargoHash = "sha256-rwf9jdr+RDpUcTEG7Xhpph0zuyz6tdFx6hWEZRuxkTY="; + + nativeBuildInputs = [ + wrapGAppsHook4 + pkg-config + ]; + + buildInputs = [ + fuse + glib + gtk4 + hicolor-icon-theme + libadwaita + pango + webkitgtk_6_0 + ]; + + # the program expects icons to be installed but the + # program does not install them itself + postInstall = '' + mkdir -p $out/share/icons + cp -r ${finalAttrs.src}/data/hicolor $out/share/icons + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Browser for the Oku Network and Peer-to-peer sites"; + homepage = "https://github.com/okubrowser/oku"; + changelog = "https://github.com/OkuBrowser/oku/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + teams = with lib.teams; [ ngi ]; + mainProgram = "oku"; + platforms = lib.platforms.linux; + }; +})