2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, opencv
|
|
|
|
, SDL2
|
|
|
|
, gtk3
|
|
|
|
, catch2_3
|
|
|
|
, spdlog
|
|
|
|
, exiv2
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xpano";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.18.1";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "krupkat";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "iPGvCJz2iywpSePBZ3c8OiccKfwaGAToGaJfRhruUPk=";
|
2023-08-04 22:07:22 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
opencv
|
|
|
|
SDL2
|
|
|
|
gtk3
|
|
|
|
spdlog
|
2023-11-16 04:20:00 +00:00
|
|
|
exiv2
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
catch2_3
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_TESTING=ON"
|
2023-11-16 04:20:00 +00:00
|
|
|
"-DXPANO_INSTALL_DESKTOP_FILES=ON"
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Panorama stitching tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "Xpano";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://krupkat.github.io/xpano/";
|
|
|
|
changelog = "https://github.com/krupkat/xpano/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ krupkat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|