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,
|
||||
libxcb,
|
||||
fetchFromGitHub,
|
||||
}: let
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: let
|
||||
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
||||
in {
|
||||
name = "emoji-picker";
|
||||
version = cargoToml.package.version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "leana8959";
|
||||
repo = "emoji-picker";
|
||||
|
|
@ -13,13 +19,6 @@
|
|||
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 = [
|
||||
|
|
@ -31,4 +30,4 @@ in
|
|||
openssl.dev
|
||||
libxcb
|
||||
];
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue