2021-10-26 18:05:15 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-08-16 10:58:00 +00:00
|
|
|
, wrapGAppsHook
|
2021-10-26 18:05:15 +00:00
|
|
|
, gtk3
|
2023-08-16 10:58:00 +00:00
|
|
|
, librsvg
|
2021-10-26 18:05:15 +00:00
|
|
|
, gtk-layer-shell
|
2021-11-05 01:30:01 +00:00
|
|
|
, stdenv
|
2021-10-26 18:05:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eww";
|
2024-02-17 19:11:31 +00:00
|
|
|
version = "0.5.0";
|
2021-10-26 18:05:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elkowar";
|
2023-06-25 20:05:27 +00:00
|
|
|
repo = "eww";
|
2024-02-17 19:11:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-HBBz1NDtj2TnDK5ghDLRrAOwHXDZlzclvVscYnmKGck=";
|
2021-10-26 18:05:15 +00:00
|
|
|
};
|
|
|
|
|
2024-02-17 19:11:31 +00:00
|
|
|
cargoHash = "sha256-IirFE714NZmppLjwbWk6fxcmRXCUFzB4oxOxBvmYu5U=";
|
2021-10-26 18:05:15 +00:00
|
|
|
|
2023-08-16 10:58:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2021-10-26 18:05:15 +00:00
|
|
|
|
2024-02-17 19:30:46 +00:00
|
|
|
buildInputs = [ gtk3 librsvg gtk-layer-shell ];
|
2021-11-16 00:03:01 +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 = {
|
2021-10-26 18:05:15 +00:00
|
|
|
description = "ElKowars wacky widgets";
|
|
|
|
homepage = "https://github.com/elkowar/eww";
|
2024-04-21 16:34:02 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-04-24 13:54:54 +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
|
|
|
};
|
|
|
|
}
|