init: pop-launcher-plugin-duckduckgo-bangs at 1.3.0

This commit is contained in:
Gabriel Arazas 2021-12-02 21:44:49 +08:00
parent 9c15267ba6
commit e3344541a6
2 changed files with 30 additions and 0 deletions

View File

@ -5,5 +5,6 @@
gnome-shell-extension-pop-shell = pkgs.callPackage ./gnome-shell-extension-pop-shell.nix { };
libcs50 = pkgs.callPackage ./libcs50.nix { };
pop-launcher = pkgs.callPackage ./pop-launcher.nix { };
pop-launcher-plugin-duckduckgo-bangs = pkgs.callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { };
tic-80 = pkgs.callPackage ./tic-80.nix { };
}

View File

@ -0,0 +1,29 @@
{ lib, fetchFromGitHub, rustPlatform, cacert, curl }:
rustPlatform.buildRustPackage rec {
pname = "pop-launcher-plugin-duckduckgo-bangs";
version = "1.3.0";
src = fetchFromGitHub {
owner = "foo-dogsquared";
repo = pname;
rev = "v${version}";
sha256 = "sha256-RddxnoFKe7Ht+LICMdNi2GeOp95n1hSTIfc3/q+pyyo=";
};
runtimeDependencies = [ curl cacert ];
# Configuring the plugin.
postInstall = ''
mkdir -p $out/etc/pop-launcher/plugins/bangs
mv $out/bin/* $out/etc/pop-launcher/plugins/bangs
cp src/plugin.ron $out/etc/pop-launcher/plugins/bangs
'';
cargoSha256 = "sha256-qzlZ0dbdfZwEBuQXIUndVFye6RdX8aI39D/UCagMfZg=";
meta = with lib; {
description = "Pop launcher for searching with Duckduckgo bangs";
homepage = "https://github.com/foo-dogsquared/pop-launcher-plugin-duckduckgo-bangs";
license = licenses.gpl3;
};
}