From d16541946a7d346eb489f7a9e7cb39faaff0f402 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 22 Jan 2023 02:59:39 -0500 Subject: .config/nixpkgs: Add fixed wf-shell --- .config/nixpkgs/config.nix | 1 + .config/nixpkgs/packages/wf-shell/default.nix | 32 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .config/nixpkgs/packages/wf-shell/default.nix diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix index 6f872c9..48e441f 100644 --- a/.config/nixpkgs/config.nix +++ b/.config/nixpkgs/config.nix @@ -314,6 +314,7 @@ in Wayland = pkgs.buildEnv { name = "wayland"; paths = [ + (callPackage ./packages/wf-shell/default.nix { }) wayfire weston wofi diff --git a/.config/nixpkgs/packages/wf-shell/default.nix b/.config/nixpkgs/packages/wf-shell/default.nix new file mode 100644 index 0000000..a7ef4a0 --- /dev/null +++ b/.config/nixpkgs/packages/wf-shell/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchgit, meson, ninja, pkg-config, wayland, alsa-lib, gtkmm3 +, gtk-layer-shell, pulseaudio, wayfire, wf-config }: + +stdenv.mkDerivation rec { + pname = "wf-shell"; + version = "deffdbae2df1f4f3280e5416965b977062059b41"; + + src = fetchgit { + url = "https://github.com/WayfireWM/wf-shell"; + sha256 = "sha256-eCga6ZdxqJYKc9yAI77fZUXOSaee8ijCE0XiJRJtDAg="; + }; + + nativeBuildInputs = [ meson ninja pkg-config wayland ]; + + buildInputs = [ + alsa-lib + gtkmm3 + gtk-layer-shell + pulseaudio + wayfire + wf-config + ]; + + mesonFlags = [ "--sysconfdir" "/etc" ]; + + meta = with lib; { + homepage = "https://github.com/WayfireWM/wf-shell"; + description = "GTK3-based panel for Wayfire"; + license = licenses.mit; + platforms = platforms.unix; + }; +} -- cgit v1.2.3