nixpkgs/pkgs/by-name/so/sov/package.nix
2024-11-28 21:12:42 -03:00

70 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
fetchpatch2,
freetype,
gitUpdater,
libglvnd,
libxkbcommon,
meson,
ninja,
pkg-config,
stdenv,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sov";
version = "0.94";
src = fetchFromGitHub {
owner = "milgra";
repo = "sov";
rev = finalAttrs.version;
hash = "sha256-JgLah21ye3G9jE3UTZu8r+nanwBDIQXmqv9iP1C+aUw=";
};
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=";
})
];
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs = [
freetype
libglvnd
libxkbcommon
wayland
wayland-protocols
];
strictDeps = true;
passthru.updateScript = gitUpdater { };
meta = {
homepage = "https://github.com/milgra/sov";
description = "Workspace overview app for sway";
license = lib.licenses.gpl3Only;
mainProgram = "sov";
maintainers = with lib.maintainers; [ ];
inherit (wayland.meta) platforms;
# sys/timerfd.h header inexistent
broken = stdenv.isDarwin;
};
})