nixpkgs/pkgs/applications/graphics/pineapple-pictures/default.nix
2024-04-12 16:23:32 +00:00

48 lines
832 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, qtsvg
, qtwayland
, qttools
, exiv2
, wrapQtAppsHook
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pineapple-pictures";
version = "0.7.4";
src = fetchFromGitHub {
owner = "BLumia";
repo = "pineapple-pictures";
rev = finalAttrs.version;
hash = "sha256-aiQlcTID8mfrT4MEx4s5K+QmMHBlHOu2HfsValiH5qU=";
};
nativeBuildInputs = [
cmake
qttools
wrapQtAppsHook
];
buildInputs = [
qtsvg
qtwayland
exiv2
];
cmakeFlags = [
"-DPREFER_QT_5=OFF"
];
meta = {
description = "Homebrew lightweight image viewer";
homepage = "https://github.com/BLumia/pineapple-pictures";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "ppic";
maintainers = with lib.maintainers; [ rewine ];
};
})