From bdd0c13ba09a42dd3516227e2dfdb9dd63a4f6b5 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 16 Jul 2022 16:40:42 +0800 Subject: [PATCH] gnome-search-provider-browser-tabs: remove package Some occasional spring cleaning of the package set and I don't use this anymore. --- pkgs/default.nix | 2 - pkgs/gnome-search-provider-browser-tabs.nix | 91 --------------------- 2 files changed, 93 deletions(-) delete mode 100644 pkgs/gnome-search-provider-browser-tabs.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index a2ff19bc..45a77667 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -21,8 +21,6 @@ let emulsion-palette = callPackage ./emulsion-palette.nix { }; gol-c = callPackage ./gol-c.nix { }; gnome-dialect = callPackage ./dialect { }; - gnome-search-provider-browser-tabs = - callPackage ./gnome-search-provider-browser-tabs.nix { }; gnome-search-provider-recoll = callPackage ./gnome-search-provider-recoll.nix { }; gnome-extension-manager = callPackage ./gnome-extension-manager.nix { }; diff --git a/pkgs/gnome-search-provider-browser-tabs.nix b/pkgs/gnome-search-provider-browser-tabs.nix deleted file mode 100644 index 491fccc1..00000000 --- a/pkgs/gnome-search-provider-browser-tabs.nix +++ /dev/null @@ -1,91 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, mkYarnPackage, meson, ninja, yarn -, zip }: - -let - version = "0.1.1"; - - repo = fetchFromGitHub { - owner = "harshadgavali"; - repo = "searchprovider-for-browser-tabs"; - rev = "connector-v${version}"; - sha256 = "sha256-5b48BZOQOSxNuFe7ehtLM5K1Qx/EUXzGeogj2vhT3bs="; - }; - - meta = with lib; { - homepage = - "https://github.com/harshadgavali/searchprovider-for-browser-tabs"; - license = licenses.mit; - platforms = platforms.unix; - }; -in lib.recurseIntoAttrs { - gnome-shell-extension = mkYarnPackage rec { - inherit meta; - pname = "gnome-search-provider-browser-tabs"; - - # This is more inline with the metadata from the shell extension itself. - version = "4"; - - src = "${repo}/shellextension"; - - buildPhase = '' - yarn --offline run build - ''; - - installPhase = '' - install -Dm644 deps/shellextension/dist/extension.js -t "$out/share/gnome-shell/extensions/${passthru.extensionUuid}" - install -Dm644 deps/shellextension/dist/metadata.json -t "$out/share/gnome-shell/extensions/${passthru.extensionUuid}" - ''; - - # We're overriding the 'distPhase' from mkYarnPackage. - distPhase = "true"; - - passthru.extensionUuid = "browser-tabs@com.github.harshadgavali"; - }; - - web-extension = let - folder = "webextension"; - chromiumAddonId = "pjidkdbbdemngigldodbdpkpggmgilnl"; - in mkYarnPackage rec { - inherit version meta; - pname = "firefox-extension-tab-search-provider-for-gnome"; - - src = "${repo}/${folder}"; - - buildPhase = '' - yarn --offline run build - ''; - - installPhase = '' - # Packaging Chromium addon. - install -Dm644 deps/${folder}/dist/chromium/* -t "$out/share/chromium/extensions/${chromiumAddonId}/${version}_0" - - # Package Mozilla Firefox extension. - ${zip}/bin/zip --recurse-paths --junk-paths nixos@${pname}.xpi deps/${folder}/dist/firefox/ - install -Dm644 nixos@${pname}.xpi -t $out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} - ''; - - # Overriding the distPhase from mkYarnPackage. - distPhase = "true"; - }; - - connector = stdenv.mkDerivation rec { - inherit version meta; - pname = "tab-search-connector-provider"; - nativeBuildInputs = [ - meson - ninja - rustPlatform.cargoSetupHook - rustPlatform.rust.rustc - rustPlatform.rust.cargo - ]; - - src = "${repo}/connector"; - cargoDeps = rustPlatform.fetchCargoTarball { - inherit src; - name = "${pname}-${version}"; - sha256 = "sha256-SULUONFmsnEiWoAWpGOLynSXF032qW+QcYfzxQrAFLQ="; - }; - - mesonFlags = [ "-Drelease-bindir=${placeholder "out"}/bin" ]; - }; -}