xpano: init at 0.16.1
This commit is contained in:
parent
0938d80a8d
commit
7843bd9b1c
66
pkgs/applications/graphics/xpano/default.nix
Normal file
66
pkgs/applications/graphics/xpano/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
18
pkgs/applications/graphics/xpano/skip_prefix_check.patch
Normal file
18
pkgs/applications/graphics/xpano/skip_prefix_check.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -167,7 +167,6 @@ install(FILES
|
||||
TYPE BIN
|
||||
)
|
||||
|
||||
-if(CMAKE_INSTALL_PREFIX MATCHES "^/usr.*|^/app.*")
|
||||
install(FILES
|
||||
"misc/build/linux/xpano.desktop"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications"
|
||||
@@ -184,7 +183,6 @@ if(CMAKE_INSTALL_PREFIX MATCHES "^/usr.*|^/app.*")
|
||||
"misc/build/linux/cz.krupkat.Xpano.metainfo.xml"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/metainfo"
|
||||
)
|
||||
-endif()
|
||||
|
||||
install(DIRECTORY
|
||||
"${CMAKE_SOURCE_DIR}/misc/assets"
|
|
@ -36182,6 +36182,8 @@ with pkgs;
|
|||
|
||||
xnotify = callPackage ../tools/X11/xnotify { };
|
||||
|
||||
xpano = callPackage ../applications/graphics/xpano { };
|
||||
|
||||
xv = callPackage ../applications/graphics/xv { };
|
||||
|
||||
xygrib = libsForQt5.callPackage ../applications/misc/xygrib { };
|
||||
|
|
Loading…
Reference in a new issue