2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchpatch2
|
2023-10-19 13:55:26 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland-scanner
|
|
|
|
, freetype
|
|
|
|
, libglvnd
|
|
|
|
, libxkbcommon
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2024-01-02 11:29:13 +00:00
|
|
|
, gitUpdater
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "sov";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.93";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milgra";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "sov";
|
|
|
|
rev = finalAttrs.version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Oc25ixrl0QX0jBBMV34BPAixyBikvevXJ1JNGZymPhg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
strictDeps = true;
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wayland-scanner
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
libglvnd
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
meta = {
|
|
|
|
description = "Workspace overview app for sway";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/milgra/sov";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
mainProgram = "sov";
|
|
|
|
maintainers = with lib.maintainers; [ eclairevoyant ];
|
|
|
|
platforms = lib.platforms.linux;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
})
|