mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
packages: refactor emoji-picker into a package
This commit is contained in:
parent
f0e78ee262
commit
f6a94713e1
4 changed files with 34 additions and 21 deletions
|
|
@ -51,7 +51,6 @@ in
|
||||||
../overlays/nil.nix
|
../overlays/nil.nix
|
||||||
../overlays/dix.nix
|
../overlays/dix.nix
|
||||||
../overlays/eepy.nix
|
../overlays/eepy.nix
|
||||||
../overlays/emoji-picker.nix
|
|
||||||
../overlays/calibre-no-mime.nix
|
../overlays/calibre-no-mime.nix
|
||||||
../overlays/fcitx5-table-extra-taiwanese.nix
|
../overlays/fcitx5-table-extra-taiwanese.nix
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
let
|
|
||||||
sources = import ../../npins;
|
|
||||||
in
|
|
||||||
final: _: {
|
|
||||||
# `-rs` to not mask the go one in nixpkgs
|
|
||||||
emoji-picker-rs = final.callPackage (sources.emoji-picker + "/package.nix") {};
|
|
||||||
}
|
|
||||||
34
nix/packages/by-name/emoji-picker-rs/package.nix
Normal file
34
nix/packages/by-name/emoji-picker-rs/package.nix
Normal 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
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
@ -62,19 +62,6 @@
|
||||||
"hash": "0rddwwrkbbgcdava542qg1wb3ca9d6g24l9gp4ghp55f04p55p79",
|
"hash": "0rddwwrkbbgcdava542qg1wb3ca9d6g24l9gp4ghp55f04p55p79",
|
||||||
"frozen": true
|
"frozen": true
|
||||||
},
|
},
|
||||||
"emoji-picker": {
|
|
||||||
"type": "Git",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "leana8959",
|
|
||||||
"repo": "emoji-picker"
|
|
||||||
},
|
|
||||||
"branch": "master",
|
|
||||||
"submodules": false,
|
|
||||||
"revision": "353eee703b5d96c28333814d4413f126c86f26c2",
|
|
||||||
"url": "https://github.com/leana8959/emoji-picker/archive/353eee703b5d96c28333814d4413f126c86f26c2.tar.gz",
|
|
||||||
"hash": "177ldizg1h4mndxmj2qclgi1p73yy6wmr3nix003d5rr4jmm2dhi"
|
|
||||||
},
|
|
||||||
"fcitx5-table-extra": {
|
"fcitx5-table-extra": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue