depot/third_party/nixpkgs/pkgs/applications/graphics/pineapple-pictures/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

47 lines
832 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, qtsvg
, qtwayland
, qttools
, exiv2
, wrapQtAppsHook
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pineapple-pictures";
version = "0.7.3";
src = fetchFromGitHub {
owner = "BLumia";
repo = "pineapple-pictures";
rev = finalAttrs.version;
hash = "sha256-UZVpyrUFf/uJNs2GHLYXpb81e7yzC8EFuoD+0Bzj6xQ=";
};
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 ];
};
})