From 4b7d8e98bb72b8e3ba6d5746137530e6c2c6a064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:09:59 -0400 Subject: [PATCH 1/4] sov: reformat --- pkgs/tools/wayland/sov/default.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/wayland/sov/default.nix b/pkgs/tools/wayland/sov/default.nix index 38578544feb42..774cb5abd2bea 100644 --- a/pkgs/tools/wayland/sov/default.nix +++ b/pkgs/tools/wayland/sov/default.nix @@ -1,6 +1,13 @@ -{ lib, stdenv, fetchFromGitHub -, meson, pkg-config, wayland-scanner, ninja -, wayland, wayland-protocols, freetype, +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, wayland-scanner +, freetype +, wayland +, wayland-protocols }: stdenv.mkDerivation rec { @@ -19,8 +26,17 @@ stdenv.mkDerivation rec { ''; strictDeps = true; - nativeBuildInputs = [ meson pkg-config wayland-scanner ninja ]; - buildInputs = [ wayland wayland-protocols freetype ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + wayland-scanner + ]; + buildInputs = [ + freetype + wayland + wayland-protocols + ]; meta = with lib; { description = "An overlay that shows schemas for all workspaces to make navigation in sway easier."; From b448c51caeb42f738bfc42e959b6291b92d431aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:11:47 -0400 Subject: [PATCH 2/4] sov: replace rec with finalAttrs idiom --- pkgs/tools/wayland/sov/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/wayland/sov/default.nix b/pkgs/tools/wayland/sov/default.nix index 774cb5abd2bea..6f9ad5f829de1 100644 --- a/pkgs/tools/wayland/sov/default.nix +++ b/pkgs/tools/wayland/sov/default.nix @@ -10,14 +10,14 @@ , wayland-protocols }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "sov"; version = "0.73"; src = fetchFromGitHub { owner = "milgra"; - repo = pname; - rev = version; + repo = "sov"; + rev = finalAttrs.version; sha256 = "sha256-cjbTSvW1fCPl2wZ848XrUPU0bDQ4oXy+D8GqyBMaTwQ="; }; @@ -45,4 +45,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ ]; platforms = platforms.linux; }; -} +}) From c3b9bbf2d0c0755b5987a6ede34c630f7783e833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:18:55 -0400 Subject: [PATCH 3/4] sov: 0.73 -> 0.92b --- pkgs/tools/wayland/sov/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/wayland/sov/default.nix b/pkgs/tools/wayland/sov/default.nix index 6f9ad5f829de1..a5f3e66828b3e 100644 --- a/pkgs/tools/wayland/sov/default.nix +++ b/pkgs/tools/wayland/sov/default.nix @@ -6,25 +6,23 @@ , pkg-config , wayland-scanner , freetype +, libglvnd +, libxkbcommon , wayland , wayland-protocols }: stdenv.mkDerivation (finalAttrs: { pname = "sov"; - version = "0.73"; + version = "0.92b"; src = fetchFromGitHub { owner = "milgra"; repo = "sov"; rev = finalAttrs.version; - sha256 = "sha256-cjbTSvW1fCPl2wZ848XrUPU0bDQ4oXy+D8GqyBMaTwQ="; + hash = "sha256-1L5D0pzcXbkz3VS7VB6ID8BJEbGeNxjo3xCr71CGcIo="; }; - postPatch = '' - substituteInPlace src/sov/main.c --replace '/usr' $out - ''; - strictDeps = true; nativeBuildInputs = [ meson @@ -34,6 +32,8 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ freetype + libglvnd + libxkbcommon wayland wayland-protocols ]; From e24a5f506182a75830d307863c9e6f347307b805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:22:38 -0400 Subject: [PATCH 4/4] sov: fix meta --- pkgs/tools/wayland/sov/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/wayland/sov/default.nix b/pkgs/tools/wayland/sov/default.nix index a5f3e66828b3e..31451d82d4b5b 100644 --- a/pkgs/tools/wayland/sov/default.nix +++ b/pkgs/tools/wayland/sov/default.nix @@ -38,11 +38,12 @@ stdenv.mkDerivation (finalAttrs: { wayland-protocols ]; - meta = with lib; { - description = "An overlay that shows schemas for all workspaces to make navigation in sway easier."; + meta = { + description = "Workspace overview app for sway"; homepage = "https://github.com/milgra/sov"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Only; + mainProgram = "sov"; + maintainers = with lib.maintainers; [ eclairevoyant ]; + platforms = lib.platforms.linux; }; })