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