1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

Merge pull request #308481 from RaySlash/yofi

yofi: init at 0.2.2
This commit is contained in:
éclairevoyant 2024-05-04 04:04:32 +00:00 committed by GitHub
commit a9a27dad74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,50 @@
{ lib
, fetchFromGitHub
, rustPlatform
, autoPatchelfHook
, fontconfig
, libxkbcommon
, pkg-config
, libgcc
, wayland
}:
rustPlatform.buildRustPackage rec {
pname = "yofi";
version = "0.2.2";
src = fetchFromGitHub {
owner = "l4l";
repo = "yofi";
rev = "refs/tags/${version}";
hash = "sha256-cepAZyA4RBgqeF20g6YOlZTM0aRqErw17yuQ3U24UEg=";
};
cargoHash = "sha256-iSy/y1iwhR8x3wDIfazMeROSrJ8uRyA10hoNo6y2OQc=";
nativeBuildInputs = [
autoPatchelfHook
pkg-config
];
buildInputs = [
libgcc
libxkbcommon
];
appendRunpaths = [
(lib.makeLibraryPath [ fontconfig wayland ])
];
checkFlags = [
# Fail to run in sandbox environment.
"--skip=screen::context::test"
];
meta = {
description = "A minimalist app launcher in Rust";
homepage = "https://github.com/l4l/yofi";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ rayslash ];
mainProgram = "yofi";
};
}