mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
34 lines
676 B
Nix
34 lines
676 B
Nix
{
|
|
rustPlatform,
|
|
python3,
|
|
pkg-config,
|
|
openssl,
|
|
libxcb,
|
|
fetchFromGitHub,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: let
|
|
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
|
cargoLock = finalAttrs.src + "/Cargo.lock";
|
|
in {
|
|
pname = "emoji-picker";
|
|
version = cargoToml.package.version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leana8959";
|
|
repo = "emoji-picker";
|
|
rev = "353eee703b5d96c28333814d4413f126c86f26c2";
|
|
hash = "sha256-ETZRqyQ5lzYA6NGOXLnxfpwb4qMMC1l7s5XA8H5s9Jw=";
|
|
};
|
|
|
|
cargoLock.lockFile = cargoLock;
|
|
|
|
nativeBuildInputs = [
|
|
python3
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl.dev
|
|
libxcb
|
|
];
|
|
})
|