about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/wayfire/wf-shell.nix
diff options
context:
space:
mode:
authorrewine <lhongxu@outlook.com>2023-08-05 02:17:56 +0800
committerrewine <lhongxu@outlook.com>2023-08-05 02:20:12 +0800
commit2b8a2792c05dd54f9f38bd26e494956be74fdd76 (patch)
tree7d2b414d5a9f8730a157ac8f949b3485a1dc65d6 /pkgs/applications/window-managers/wayfire/wf-shell.nix
parente9e04eb4199e0ae4a6febdef563bbbb36c807bf1 (diff)
wayfire: use finalAttrs pattern and set meta.mainProgram
Diffstat (limited to 'pkgs/applications/window-managers/wayfire/wf-shell.nix')
-rw-r--r--pkgs/applications/window-managers/wayfire/wf-shell.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/applications/window-managers/wayfire/wf-shell.nix b/pkgs/applications/window-managers/wayfire/wf-shell.nix
index 10e16a6573e16..7af794db7886e 100644
--- a/pkgs/applications/window-managers/wayfire/wf-shell.nix
+++ b/pkgs/applications/window-managers/wayfire/wf-shell.nix
@@ -13,16 +13,16 @@
 , pulseaudio
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "wf-shell";
   version = "0.7.0";
 
   src = fetchFromGitHub {
     owner = "WayfireWM";
-    repo = pname;
-    rev = "v${version}";
+    repo = "wf-shell";
+    rev = "v${finalAttrs.version}";
     fetchSubmodules = true;
-    sha256 = "sha256-iQUBuNjbZuf51A69RC6NsMHFZCFRv+d9XZ0HtP6OpOA=";
+    hash = "sha256-iQUBuNjbZuf51A69RC6NsMHFZCFRv+d9XZ0HtP6OpOA=";
   };
 
   nativeBuildInputs = [
@@ -43,11 +43,11 @@ stdenv.mkDerivation rec {
 
   mesonFlags = [ "--sysconfdir /etc" ];
 
-  meta = with lib; {
+  meta = {
     homepage = "https://github.com/WayfireWM/wf-shell";
     description = "GTK3-based panel for Wayfire";
-    license = licenses.mit;
-    maintainers = with maintainers; [ qyliss wucke13 rewine ];
-    platforms = platforms.unix;
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
+    platforms = lib.platforms.unix;
   };
-}
+})