2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qtsvg
|
2023-08-04 22:07:22 +00:00
|
|
|
, qtwayland
|
2022-07-14 12:49:19 +00:00
|
|
|
, qttools
|
|
|
|
, exiv2
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "pineapple-pictures";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BLumia";
|
|
|
|
repo = "pineapple-pictures";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-dD0pHqw1Gxp+yxzYdm2ZgxiHKyuJKBGYpjv99B1Da1g=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtsvg
|
2023-08-04 22:07:22 +00:00
|
|
|
qtwayland
|
2022-10-21 18:38:19 +00:00
|
|
|
exiv2
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPREFER_QT_5=OFF"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Homebrew lightweight image viewer";
|
|
|
|
homepage = "https://github.com/BLumia/pineapple-pictures";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "ppic";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ rewine ];
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|