mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
packages/emoji-picker-rs: refactor using finalAttrs
This commit is contained in:
parent
21c920be35
commit
db61f9d4b9
1 changed files with 17 additions and 18 deletions
|
|
@ -5,7 +5,13 @@
|
||||||
openssl,
|
openssl,
|
||||||
libxcb,
|
libxcb,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}: let
|
}:
|
||||||
|
rustPlatform.buildRustPackage (finalAttrs: let
|
||||||
|
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
||||||
|
in {
|
||||||
|
name = "emoji-picker";
|
||||||
|
version = cargoToml.package.version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "leana8959";
|
owner = "leana8959";
|
||||||
repo = "emoji-picker";
|
repo = "emoji-picker";
|
||||||
|
|
@ -13,22 +19,15 @@
|
||||||
hash = "sha256-ETZRqyQ5lzYA6NGOXLnxfpwb4qMMC1l7s5XA8H5s9Jw=";
|
hash = "sha256-ETZRqyQ5lzYA6NGOXLnxfpwb4qMMC1l7s5XA8H5s9Jw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoToml = fromTOML (builtins.readFile (src + "/Cargo.toml"));
|
cargoHash = "sha256-rJKFRWaqulnan2jtt0erj5cypSBe0Z5PiNcOXd3HCZs=";
|
||||||
in
|
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
|
||||||
name = "emoji-picker";
|
|
||||||
version = cargoToml.package.version;
|
|
||||||
inherit src;
|
|
||||||
|
|
||||||
cargoHash = "sha256-rJKFRWaqulnan2jtt0erj5cypSBe0Z5PiNcOXd3HCZs=";
|
nativeBuildInputs = [
|
||||||
|
python3
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
buildInputs = [
|
||||||
python3
|
openssl.dev
|
||||||
pkg-config
|
libxcb
|
||||||
];
|
];
|
||||||
|
})
|
||||||
buildInputs = [
|
|
||||||
openssl.dev
|
|
||||||
libxcb
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue