update eww

This commit is contained in:
atagen 2023-06-24 01:30:51 +10:00
parent fb2cd62410
commit de35d3d1e2
4 changed files with 87 additions and 37 deletions

View file

@ -1,7 +1,8 @@
{pkgs, ...}: {
hyprland-system76-scheduler-integration = pkgs.callPackage ./hyprland-system76-scheduler-integration.nix {};
culr = pkgs.callPackage ./culr.nix {};
everforest-theme = pkgs.callPackage ./everforst-theme.nix {};
eww-git = pkgs.callPackage ./eww.nix {};
# everforest-theme = pkgs.callPackage ./everforst-theme.nix {};
# coconut = pkgs.python310Packages.callPackage ./coconut.nix {};
# kanagawa-icons = pkgs.callPackage ./kanagawa-icons.nix {};
# gruvbox-kvantum = pkgs.callPackage ./gruvbox-kvantum.nix {};

48
pkgs/eww.nix Normal file
View file

@ -0,0 +1,48 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, gtk3
, gdk-pixbuf
, withWayland ? true
, gtk-layer-shell
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "eww";
version = "0.4.0-dirty";
src = fetchFromGitHub {
owner = "elkowar";
repo = pname;
rev = "25e50eda46379bccd8a7887c18ee35833e0460e8";
sha256 = "sha256-8e6gHSg6FDp6nU5v89D44Tqb1lR5aQpS0lXOVqzoUS4=";
};
cargoSha256 = "sha256-25CoBVIofOCBy8ChMesIKaGoluwpy8tYo+zaFLSaiEo=";
# cargoPatches = [ ./Cargo.lock.patch ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 gdk-pixbuf ] ++ lib.optional withWayland gtk-layer-shell;
buildNoDefaultFeatures = withWayland;
buildFeatures = lib.optional withWayland "wayland";
cargoBuildFlags = [ "--bin" "eww" ];
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;
maintainers = with maintainers; [ figsoda lom ];
broken = stdenv.isDarwin;
};
}