Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions pkgs/by-name/me/mew/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchFromGitea,

# nativeBuildInputs
pkg-config,

# buildInputs
fcft,
libxkbcommon,
pixman,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation {
pname = "mew";
version = "1.0-unstable-2025-06-20";

src = fetchFromGitea {
domain = "codeberg.org";
owner = "sewn";
repo = "mew";
rev = "af6440da8fe6683cf0b873e0a98c293bf02c3447";
hash = "sha256-NbpYITHO81fnaDY0dtolaUBdRqQNKwHQz/lBQMOHM5c=";
};

nativeBuildInputs = [
pkg-config
];

buildInputs = [
fcft
libxkbcommon
pixman
wayland
wayland-protocols
wayland-scanner
Comment on lines +38 to +39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think scanner went into nativeBuildInputs for cross

];

makeFlags = [
# The PREFIX var is hardcoded in the makefile.
"PREFIX=$(out)"
];

postFixup = ''
substituteInPlace $out/bin/mew-run \
--replace-fail \
'path | mew -e "$@"' \
'path | ${placeholder "out"}/bin/mew -e "$@"'
'';

meta = {
description = "Efficient dynamic menu for Wayland, an effective port of dmenu to Wayland";
homepage = "https://codeberg.org/sewn/mew";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Notarin ];
platforms = lib.platforms.linux;
mainProgram = "mew";
};
}
Loading