-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
hdrmerge: init at unstable-2020-11-12 #157087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| { lib | ||
| , mkDerivation | ||
| , fetchpatch | ||
| , fetchFromGitHub | ||
| , cmake | ||
| , extra-cmake-modules | ||
| , qtbase | ||
| , wrapQtAppsHook | ||
| , libraw | ||
| , exiv2 | ||
| , zlib | ||
| , alglib | ||
| , pkg-config | ||
| , makeDesktopItem | ||
| , copyDesktopItems | ||
| }: | ||
|
|
||
| mkDerivation rec { | ||
| pname = "hdrmerge"; | ||
| version = "unstable-2020-11-12"; | ||
| src = fetchFromGitHub { | ||
| owner = "jcelaya"; | ||
| repo = "hdrmerge"; | ||
| rev = "f5a2538cffe3e27bd9bea5d6a199fa211d05e6da"; | ||
| sha256 = "1bzf9wawbdvdbv57hnrmh0gpjfi5hamgf2nwh2yzd4sh1ssfa8jz"; | ||
| }; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| pkg-config | ||
| wrapQtAppsHook | ||
| copyDesktopItems | ||
| ]; | ||
|
|
||
| buildInputs = [ qtbase libraw exiv2 zlib alglib ]; | ||
|
|
||
| cmakeFlags = [ | ||
| "-DALGLIB_DIR:PATH=${alglib}" | ||
| ]; | ||
|
|
||
| patches = [ | ||
| (fetchpatch { | ||
| # patch FindAlglib.cmake to respect ALGLIB_DIR | ||
| # see https://github.com/jcelaya/hdrmerge/pull/213 | ||
| name = "patch-hdrmerge-CMake.patch"; | ||
| url = "https://github.com/mkroehnert/hdrmerge/commit/472b2dfe7d54856158aea3d5412a02d0bab1da4c.patch"; | ||
| sha256 = "0jc713ajr4w08pfbi6bva442prj878nxp1fpl9112i3xj34x9sdi"; | ||
| }) | ||
| ]; | ||
|
|
||
| desktopItems = [ | ||
| (makeDesktopItem { | ||
| name = "HDRMerge"; | ||
| genericName = "HDR raw image merge"; | ||
| desktopName = "HDRMerge"; | ||
| comment = meta.description; | ||
| icon = "hdrmerge"; | ||
| exec = "@out@/bin/hdrmerge -F"; | ||
| categories = [ "Graphics" ]; | ||
| mimeTypes = [ "image/x-dcraw" "image/x-adobe-dng" ]; | ||
| terminal = false; | ||
| }) | ||
| ]; | ||
|
|
||
| postInstallPhase = '' | ||
| # Make a desktop item | ||
| mkdir -p $out/share/icons/ $out/share/applications/ | ||
| cp ../data/images/logo.png $out/share/icons/hdrmerge.png | ||
| ''; | ||
|
|
||
| meta = with lib; { | ||
| homepage = "https://github.com/jcelaya/hdrmerge"; | ||
| description = "Combines two or more raw images into an HDR"; | ||
| license = licenses.gpl3Plus; | ||
| platforms = platforms.linux; | ||
| maintainers = [ maintainers.paperdigits ]; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { lib, stdenv, fetchurl, cmake, clang }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
paperdigits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| pname = "alglib3"; | ||
| version = "3.18.0"; | ||
|
|
||
| src = fetchurl { | ||
| url = "https://www.alglib.net/translator/re/alglib-${version}.cpp.gpl.tgz"; | ||
| sha256 = "0ag8dvcxzzp9riqvk4lhcbwhvh0lq54lbdnsbyr107rjfi2p1vlq"; | ||
| }; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| clang | ||
| ]; | ||
|
|
||
| patches = [ | ||
| ./patch-alglib-CMakeLists.patch | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Numerical analysis and data processing library"; | ||
| homepage = "https://www.alglib.net/"; | ||
| license = lib.licenses.gpl2Plus; | ||
| maintainers = [ maintainers.paperdigits ]; | ||
| longDescription = '' | ||
| ALGLIB is a cross-platform numerical analysis and data processing library. It supports several programming languages (C++, C#, Delphi) and several operating systems (Windows and POSIX, including Linux). ALGLIB features include: | ||
|
|
||
| * Data analysis (classification/regression, statistics) | ||
| * Optimization and nonlinear solvers | ||
| * Interpolation and linear/nonlinear least-squares fitting | ||
| * Linear algebra (direct algorithms, EVD/SVD), direct and iterative linear solvers | ||
| * Fast Fourier Transform and many other algorithms | ||
| ''; | ||
| }; | ||
| } | ||
23 changes: 23 additions & 0 deletions
23
pkgs/development/libraries/alglib/patch-alglib-CMakeLists.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- /dev/null | ||
| +++ b/CMakeLists.txt | ||
| @@ -0,0 +1,20 @@ | ||
| +cmake_minimum_required(VERSION 2.8) | ||
| + | ||
| +project(alglib3 CXX) | ||
| + | ||
| +file(GLOB_RECURSE sources src/*.cpp) | ||
| +file(GLOB_RECURSE headers src/*.h) | ||
| + | ||
| +add_library(${PROJECT_NAME} STATIC ${sources} ${headers}) | ||
| + | ||
| +install( | ||
| + TARGETS ${PROJECT_NAME} | ||
| + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
| + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| +) | ||
| + | ||
| +install( | ||
| + FILES ${headers} | ||
| + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alglib | ||
| +) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.