about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/so/sov/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/so/sov/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/so/sov/package.nix68
1 files changed, 68 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/so/sov/package.nix b/nixpkgs/pkgs/by-name/so/sov/package.nix
new file mode 100644
index 000000000000..d6d9f4053123
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/so/sov/package.nix
@@ -0,0 +1,68 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchpatch2
+, meson
+, ninja
+, pkg-config
+, wayland-scanner
+, freetype
+, libglvnd
+, libxkbcommon
+, wayland
+, wayland-protocols
+, gitUpdater
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "sov";
+  version = "0.93";
+
+  src = fetchFromGitHub {
+    owner = "milgra";
+    repo = "sov";
+    rev = finalAttrs.version;
+    hash = "sha256-Oc25ixrl0QX0jBBMV34BPAixyBikvevXJ1JNGZymPhg=";
+  };
+
+  patches = [
+    # mark wayland-scanner as build-time dependency
+    # https://github.com/milgra/sov/pull/45
+    (fetchpatch2 {
+      url = "https://github.com/milgra/sov/commit/8677dcfc47e440157388a8f15bdda9419d84db04.patch";
+      hash = "sha256-P1k1zosHcVO7hyhD1JWbj07h7pQ7ybgDHfoufBinEys=";
+    })
+  ];
+
+  strictDeps = true;
+
+  depsBuildBuild = [
+    pkg-config
+  ];
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    wayland-scanner
+  ];
+
+  buildInputs = [
+    freetype
+    libglvnd
+    libxkbcommon
+    wayland
+    wayland-protocols
+  ];
+
+  passthru.updateScript = gitUpdater { };
+
+  meta = {
+    description = "Workspace overview app for sway";
+    homepage = "https://github.com/milgra/sov";
+    license = lib.licenses.gpl3Only;
+    mainProgram = "sov";
+    maintainers = with lib.maintainers; [ eclairevoyant ];
+    platforms = lib.platforms.linux;
+  };
+})