packages: refactor emoji-picker into a package

This commit is contained in:
Primrose 2025-07-25 09:09:53 +02:00
parent f0e78ee262
commit f6a94713e1
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 34 additions and 21 deletions

View file

@ -0,0 +1,34 @@
{
rustPlatform,
python3,
pkg-config,
openssl,
libxcb,
fetchFromGitHub,
}: let
src = fetchFromGitHub {
owner = "leana8959";
repo = "emoji-picker";
rev = "353eee703b5d96c28333814d4413f126c86f26c2";
hash = "sha256-ETZRqyQ5lzYA6NGOXLnxfpwb4qMMC1l7s5XA8H5s9Jw=";
};
cargoToml = fromTOML (builtins.readFile (src + "/Cargo.toml"));
in
rustPlatform.buildRustPackage (finalAttrs: {
name = "emoji-picker";
version = cargoToml.package.version;
inherit src;
cargoHash = "sha256-rJKFRWaqulnan2jtt0erj5cypSBe0Z5PiNcOXd3HCZs=";
nativeBuildInputs = [
python3
pkg-config
];
buildInputs = [
openssl.dev
libxcb
];
})