2021-12-02 13:44:49 +00:00
|
|
|
{ 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 = ''
|
2022-08-07 05:29:42 +00:00
|
|
|
install -Dm644 src/plugin.ron -t $out/share/pop-launcher/plugins/bangs
|
|
|
|
mv $out/bin/* $out/share/pop-launcher/plugins/bangs
|
2021-12-02 13:44:49 +00:00
|
|
|
'';
|
|
|
|
|
2023-11-24 04:50:53 +00:00
|
|
|
cargoHash = "sha256-qzlZ0dbdfZwEBuQXIUndVFye6RdX8aI39D/UCagMfZg=";
|
2021-12-02 13:44:49 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pop launcher for searching with Duckduckgo bangs";
|
2021-12-06 07:28:29 +00:00
|
|
|
homepage =
|
|
|
|
"https://github.com/foo-dogsquared/pop-launcher-plugin-duckduckgo-bangs";
|
2022-03-27 03:29:42 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-12-02 13:44:49 +00:00
|
|
|
};
|
|
|
|
}
|