nixpkgs/pkgs/by-name/yo/yofi/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

51 lines
996 B
Nix

{ 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 = "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";
};
}