Skip to content

Commit

Permalink
flake: update and add yofi package
Browse files Browse the repository at this point in the history
  • Loading branch information
RaySlash committed May 4, 2024
1 parent 8e6bc73 commit a7d3364
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/result/
result/
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/home-manager/wezterm-custom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in
};

config = mkIf cfg.enable {

programs.wezterm = {
enable = true;
package = pkgs.wezterm-master;
Expand All @@ -23,7 +24,6 @@ in
cursor_fg = "#1D2021";
selection_bg = "#D4BE98";
selection_fg = "#3C3836";

ansi = [
"#1d2021"
"#ea6962"
Expand Down
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# example = pkgs.callPackage ./example { };
dioxus_cli = pkgs.callPackage ./dioxus_cli { };
wezterm-master = pkgs.callPackage ./wezterm { };
yofi-custom = pkgs.callPackage ./yofi { };
}
78 changes: 39 additions & 39 deletions pkgs/yofi/default.nix
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";
};
}

0 comments on commit a7d3364

Please sign in to comment.