depot/third_party/nixpkgs/pkgs/applications/graphics/xpano/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

63 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, ninja
, opencv
, SDL2
, gtk3
, catch2_3
, spdlog
, exiv2
, wrapGAppsHook3
}:
stdenv.mkDerivation rec {
pname = "xpano";
version = "0.18.1";
src = fetchFromGitHub {
owner = "krupkat";
repo = pname;
rev = "v${version}";
sha256 = "iPGvCJz2iywpSePBZ3c8OiccKfwaGAToGaJfRhruUPk=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
opencv
SDL2
gtk3
spdlog
exiv2
];
checkInputs = [
catch2_3
];
doCheck = true;
cmakeFlags = [
"-DBUILD_TESTING=ON"
"-DXPANO_INSTALL_DESKTOP_FILES=ON"
];
meta = with lib; {
description = "Panorama stitching tool";
mainProgram = "Xpano";
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;
};
}