2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-08-22 20:05:09 +00:00
|
|
|
, wrapGAppsHook
|
2021-10-28 06:52:43 +00:00
|
|
|
, gtk3
|
2023-08-22 20:05:09 +00:00
|
|
|
, librsvg
|
2021-10-28 06:52:43 +00:00
|
|
|
, gtk-layer-shell
|
2021-12-06 16:07:01 +00:00
|
|
|
, stdenv
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eww";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.5.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elkowar";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "eww";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-HBBz1NDtj2TnDK5ghDLRrAOwHXDZlzclvVscYnmKGck=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
cargoHash = "sha256-IirFE714NZmppLjwbWk6fxcmRXCUFzB4oxOxBvmYu5U=";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildInputs = [ gtk3 librsvg gtk-layer-shell ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "--bin" "eww" ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
|
|
|
|
# requires unstable rust features
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ElKowars wacky widgets";
|
|
|
|
homepage = "https://github.com/elkowar/eww";
|
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ figsoda lom coffeeispower ];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "eww";
|
2021-12-06 16:07:01 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|