mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
48 lines
832 B
Nix
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 ];
|
|
};
|
|
})
|