yofi: init at 0.2.2
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
This commit is contained in:
parent
4ca7f02195
commit
7147b6bc27
1 changed files with 50 additions and 0 deletions
50
pkgs/by-name/yo/yofi/package.nix
Normal file
50
pkgs/by-name/yo/yofi/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue