diff options
author | figsoda <figsoda@pm.me> | 2021-10-26 14:05:15 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-26 17:05:39 -0400 |
commit | 0c475957edde0464c16cdd2b6fb7a19402f098e5 (patch) | |
tree | e259e5c2424d9e4c10ce3e850c0a9b14544222b6 /pkgs/applications/window-managers/eww | |
parent | 759bd01aea19b1e0bd9a2d847c2637e16469fc04 (diff) |
eww: init at 0.2.0
Diffstat (limited to 'pkgs/applications/window-managers/eww')
-rw-r--r-- | pkgs/applications/window-managers/eww/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/eww/default.nix b/pkgs/applications/window-managers/eww/default.nix new file mode 100644 index 0000000000000..c96ddcbaf21e5 --- /dev/null +++ b/pkgs/applications/window-managers/eww/default.nix @@ -0,0 +1,43 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, gtk3 +, withWayland ? false +, gtk-layer-shell +}: + +rustPlatform.buildRustPackage rec { + pname = "eww"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "elkowar"; + repo = pname; + rev = "v${version}"; + sha256 = "050zc3w1z9f2vg6sz86mdxf345gd3s3jf09gf4y8y1mqkzs86b8x"; + }; + + cargoSha256 = "sha256-LejnTVv9rhL9CVW1fgj2gFv4amHQeziu5uaH2ae8AAw="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ gtk3 ] ++ lib.optional withWayland gtk-layer-shell; + + cargoBuildFlags = [ "--bin" "eww" ] ++ lib.optionals withWayland [ + "--no-default-features" + "--features=wayland" + ]; + + 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 ]; + }; +} |