45 lines
806 B
Nix
45 lines
806 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, qtsvg
|
|
, qttools
|
|
, exiv2
|
|
, wrapQtAppsHook
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pineapple-pictures";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BLumia";
|
|
repo = "pineapple-pictures";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-NXg+lCkm4i4ONkIp3F7Z1yHHO9daXucC+X1SuNxPJgQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
qttools
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtsvg
|
|
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 ];
|
|
};
|
|
})
|