2024-08-10 05:55:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
gtk3,
|
|
|
|
librsvg,
|
|
|
|
gtk-layer-shell,
|
|
|
|
stdenv,
|
|
|
|
libdbusmenu-gtk3,
|
2021-10-26 18:05:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eww";
|
2024-05-03 14:53:56 +00:00
|
|
|
version = "0.6.0-unstable-2024-04-26";
|
2021-10-26 18:05:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elkowar";
|
2023-06-25 20:05:27 +00:00
|
|
|
repo = "eww";
|
2024-05-03 14:53:56 +00:00
|
|
|
# FIXME: change to a release tag once a new release is available
|
|
|
|
# https://github.com/elkowar/eww/pull/1084
|
|
|
|
# using the revision to fix string truncation issue in eww config
|
|
|
|
rev = "2c8811512460ce6cc75e021d8d081813647699dc";
|
|
|
|
hash = "sha256-eDOg5Ink3iWT/B1WpD9po5/UxS4DEaVO4NPIRyjSheM=";
|
2021-10-26 18:05:15 +00:00
|
|
|
};
|
|
|
|
|
2024-05-03 14:53:56 +00:00
|
|
|
cargoHash = "sha256-ClnIW7HxbQcC85OyoMhBLFjVtdEUCOARuimfS4uRi+E=";
|
2021-10-26 18:05:15 +00:00
|
|
|
|
2024-05-03 14:58:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
2021-10-26 18:05:15 +00:00
|
|
|
|
2024-04-21 16:37:40 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gtk-layer-shell
|
|
|
|
libdbusmenu-gtk3
|
|
|
|
librsvg
|
|
|
|
];
|
2021-11-16 00:03:01 +00:00
|
|
|
|
2024-05-03 14:58:32 +00:00
|
|
|
cargoBuildFlags = [
|
|
|
|
"--bin"
|
|
|
|
"eww"
|
|
|
|
];
|
2021-10-26 18:05:15 +00:00
|
|
|
|
|
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
|
|
|
|
# requires unstable rust features
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
2024-04-21 16:34:02 +00:00
|
|
|
meta = {
|
2024-05-03 14:58:32 +00:00
|
|
|
description = "Widget system made in Rust to create widgets for any WM";
|
|
|
|
longDescription = ''
|
|
|
|
Eww (ElKowar's Wacky Widgets) is a widget system made in Rust which lets
|
|
|
|
you create your own widgets similarly to how you can in AwesomeWM.
|
|
|
|
The key difference: It is independent of your window manager!
|
|
|
|
It can be configured in yuck and themed using CSS, is very easy
|
|
|
|
to customize and provides all the flexibility you need!
|
|
|
|
'';
|
2021-10-26 18:05:15 +00:00
|
|
|
homepage = "https://github.com/elkowar/eww";
|
2024-04-21 16:34:02 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-05-03 14:58:32 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
coffeeispower
|
|
|
|
eclairevoyant
|
|
|
|
figsoda
|
|
|
|
lom
|
|
|
|
w-lfchen
|
|
|
|
];
|
2023-08-07 20:25:32 +00:00
|
|
|
mainProgram = "eww";
|
2021-11-05 01:30:01 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-10-26 18:05:15 +00:00
|
|
|
};
|
|
|
|
}
|