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
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pineapple-pictures";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.7.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BLumia";
|
|
|
|
repo = "pineapple-pictures";
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-6peNZc+rrQrUFSrn1AK8lZsy4RQf9DwpmXY0McfEus8=";
|
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"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Homebrew lightweight image viewer";
|
|
|
|
homepage = "https://github.com/BLumia/pineapple-pictures";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "ppic";
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ rewine ];
|
|
|
|
};
|
|
|
|
}
|