nixpkgs/pkgs/by-name/sw/swayimg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.4 KiB
Nix
Raw Normal View History

2022-11-03 03:12:48 +01:00
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
2023-04-22 19:22:23 +02:00
, wayland-scanner
2022-11-03 03:12:48 +01:00
, wayland
, wayland-protocols
, json_c
, libxkbcommon
, fontconfig
, giflib
, libheif
, libjpeg
, libwebp
, libtiff
, librsvg
, libpng
, libjxl
, libexif
2024-01-03 21:07:59 +01:00
, libavif
2023-12-09 19:00:00 +01:00
, openexr_3
2022-11-03 03:12:48 +01:00
, bash-completion
2023-12-09 19:00:00 +01:00
, testers
2022-11-03 03:12:48 +01:00
}:
2023-12-09 19:00:00 +01:00
stdenv.mkDerivation (finalAttrs: {
2022-11-03 03:12:48 +01:00
pname = "swayimg";
2024-02-03 08:52:05 +01:00
version = "2.1";
2022-11-03 03:12:48 +01:00
src = fetchFromGitHub {
owner = "artemsen";
2023-12-09 19:00:00 +01:00
repo = "swayimg";
rev = "v${finalAttrs.version}";
2024-02-03 08:52:05 +01:00
hash = "sha256-+ntunT1FbgGcxpKGTcs7G7FYmoAobu/p/8ATIoBzfKE=";
2022-11-03 03:12:48 +01:00
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
2023-04-22 19:22:23 +02:00
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
2022-11-03 03:12:48 +01:00
2023-12-09 19:00:00 +01:00
mesonFlags = [
(lib.mesonOption "version" finalAttrs.version)
];
2022-11-03 03:12:48 +01:00
buildInputs = [
bash-completion
wayland
wayland-protocols
json_c
libxkbcommon
fontconfig
giflib
libheif
libjpeg
libwebp
libtiff
librsvg
libpng
libjxl
libexif
2024-01-03 21:07:59 +01:00
libavif
2023-12-09 19:00:00 +01:00
openexr_3
2022-11-03 03:12:48 +01:00
];
2023-12-09 19:00:00 +01:00
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
2022-11-03 03:12:48 +01:00
meta = with lib; {
homepage = "https://github.com/artemsen/swayimg";
description = "Image viewer for Sway/Wayland";
changelog = "https://github.com/artemsen/swayimg/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
platforms = platforms.linux;
2023-11-27 02:17:53 +01:00
mainProgram = "swayimg";
2022-11-03 03:12:48 +01:00
};
2023-12-09 19:00:00 +01:00
})