depot/third_party/nixpkgs/pkgs/applications/graphics/xpano/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

66 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, ninja
, opencv
, SDL2
, gtk3
, catch2_3
, spdlog
, exiv2
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "xpano";
version = "0.16.1";
src = fetchFromGitHub {
owner = "krupkat";
repo = pname;
rev = "v${version}";
sha256 = "1f95spf7bbbdvbr4gqfyrs161049jj1wnkvf5wgsd0ga3vb15mcj";
fetchSubmodules = true;
};
patches = [
# force install desktop + icon files
./skip_prefix_check.patch
];
nativeBuildInputs = [
cmake
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
opencv
SDL2
gtk3
spdlog
# exiv2 # TODO: enable when 0.28.0 is available
];
checkInputs = [
catch2_3
];
doCheck = true;
cmakeFlags = [
"-DBUILD_TESTING=ON"
];
meta = with lib; {
description = "A panorama stitching tool";
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;
};
}