gnu: flameshot: Update to commit 560190199.

* gnu/packages/image.scm (flameshot): Update to commit 560190199, build
with qt6.

Change-Id: I71af0752360ecaf1d1b099b1635e2a338aef1e2a
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Sergey Trofimov 2025-06-27 11:10:54 +02:00 committed by Sharlatan Hellseher
parent aa9c00a9e0
commit a2cbff5a7a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2161,26 +2161,48 @@ parsing, viewing, modifying, and saving this metadata.")
(license license:lgpl2.0+))) (license license:lgpl2.0+)))
(define-public flameshot (define-public flameshot
;; Upstream switched to nightly builds, no release tags anymore.
(let ((commit "56019019999defbf722f43f87aaeae6596a12c0a")
(revision "1"))
(package (package
(name "flameshot") (name "flameshot")
(version "12.1.0") (version (git-version "12.1.0" revision commit))
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/flameshot-org/flameshot") (url "https://github.com/flameshot-org/flameshot")
(commit (string-append "v" version)))) (commit (string-append commit))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1p7gqs5vqzbddlgl38lbanchwb14m6lx8f2cn2c5p0vyqwvqqv52")))) "11y1x2pc0sdmz4dbrdl9d2i96sxi3v7bfjgcaqy2sc29zjjvynqx"))))
(build-system qt-build-system) (build-system qt-build-system)
(native-inputs
(list qttools-5))
(inputs
(list qtbase-5 qtsvg-5))
(arguments (arguments
`(#:tests? #f)) ;no tests (list
#:qtbase qtbase
#:tests? #f ;no tests
#:configure-flags
#~(list "-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
"-DDISABLE_UPDATE_CHECKER=ON")
#:phases
#~ (modify-phases %standard-phases
(add-before 'configure 'add-singleapplication
(lambda* (#:key inputs #:allow-other-keys)
(let ((dep (assoc-ref inputs "single-application")))
(substitute* "CMakeLists.txt"
(("^if\\(USE_SINGLEAPPLICATION\\)" all)
(string-append
all
"\nadd_library(SingleApplication::SingleApplication"
" SHARED IMPORTED)"
"\nset_target_properties(SingleApplication::SingleApplication"
" PROPERTIES"
"\n INTERFACE_INCLUDE_DIRECTORIES \"" dep "/include\""
"\n IMPORTED_LOCATION " dep "/lib/libSingleApplication.a"
"\n)\n")))))))))
(native-inputs (list qttools))
(inputs (list single-application qtcolorwidgets qtsvg))
(home-page "https://github.com/flameshot-org/flameshot") (home-page "https://github.com/flameshot-org/flameshot")
(synopsis "Powerful yet simple to use screenshot software") (synopsis "Powerful yet simple to use screenshot software")
(description "Flameshot is a screenshot program. (description "Flameshot is a screenshot program.
@ -2193,7 +2215,7 @@ Features:
@item DBus interface. @item DBus interface.
@item Upload to Imgur. @item Upload to Imgur.
@end itemize\n") @end itemize\n")
(license license:gpl3+))) (license license:gpl3+))))
(define-public swappy (define-public swappy
(package (package