-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/result/ | ||
result/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
{ | ||
lib, | ||
fetchFromGitHub, | ||
rustPlatform, | ||
autoPatchelfHook, | ||
wayland, | ||
... | ||
}: let | ||
buildDeps = with pkgs; [libnotify fontconfig libxkbcommon wayland]; | ||
{ lib | ||
, fetchFromGitHub | ||
, rustPlatform | ||
, autoPatchelfHook | ||
, fontconfig | ||
, libxkbcommon | ||
, pkg-config | ||
, ... | ||
}: | ||
let | ||
buildDeps = [ fontconfig libxkbcommon pkg-config ]; | ||
in | ||
rustPlatform.buildRustPackage rec { | ||
pname = "yofi"; | ||
inherit (cargoToml.package) version; | ||
rustPlatform.buildRustPackage rec { | ||
pname = "yofi"; | ||
version = "0.2.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "rayslash"; | ||
repo = "yofi"; | ||
rev = "update-flake"; | ||
hash = ""; | ||
}; | ||
src = fetchFromGitHub { | ||
owner = "l4l"; | ||
repo = "yofi"; | ||
rev = version; | ||
hash = "sha256-cepAZyA4RBgqeF20g6YOlZTM0aRqErw17yuQ3U24UEg="; | ||
}; | ||
|
||
cargoHash = ""; | ||
cargoHash = "sha256-iSy/y1iwhR8x3wDIfazMeROSrJ8uRyA10hoNo6y2OQc="; | ||
buildInputs = buildDeps; | ||
nativeBuildInputs = buildDeps; | ||
|
||
buildInputs = buildDeps; | ||
runtimeDependencies = buildDeps; | ||
nativeBuildInputs = buildDeps; | ||
postFixup = '' | ||
patchelf $out/bin/yofi --add-rpath ${lib.makeLibraryPath buildDeps} | ||
''; | ||
|
||
postFixup = '' | ||
patchelf $out/bin/yofi --add-rpath ${lib.makeLibraryPath buildDeps} | ||
''; | ||
checkFlags = [ | ||
# Fail to run in sandbox environment. | ||
"--skip=screen::context::test" | ||
]; | ||
|
||
checkFlags = [ | ||
# Fail to run in sandbox environment. | ||
"--skip=screen::context::test" | ||
]; | ||
|
||
meta = { | ||
description = "A minimalist app launcher in Rust"; | ||
homepage = "https://crates.io/crates/yofi"; | ||
license = lib.licenses.mit; | ||
platforms = lib.platforms.linux; | ||
maintainers = with lib.maintainers; [rayslash]; | ||
mainProgram = "yofi"; | ||
}; | ||
} | ||
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"; | ||
}; | ||
} |