Compare commits

...
2 Commits
Author SHA1 Message Date
Hilton Chain 07f3c47c02 rosenthal: Add scrcpy.
* modules/rosenthal/packages/android.scm: New file.
  (scrcpy): New variable.
2026-12-04 19:37:31 +08:00
Hilton Chain b755c0d018 rosenthal: caddy/dolly: Update to 2026.12.03.
* modules/rosenthal/packages/web.scm (caddy/dolly): Update to 2026.12.03.
  [arguments] <#:vendor-hash>: Update.
2026-12-04 19:37:24 +08:00
2 changed files with 67 additions and 3 deletions

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal packages android)
#:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system meson)
#:use-module (gnu packages android)
#:use-module (gnu packages libusb)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages sdl)
#:use-module (gnu packages video))
(define-public scrcpy
(package
(name "scrcpy")
(version "5.0.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Genymobile/scrcpy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"062fnhm5pj39cxygs276zqw780blfw6rf850r442iw587a63fsyf"))))
(build-system meson-build-system)
(arguments
(list #:configure-flags
#~(list (string-append
"-Dprebuilt_server="
#+(this-package-native-input
(string-append "scrcpy-server-v"
(package-version this-package)))))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-references
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "app/src/adb/adb.c"
(("strdup\\(\"adb\"\\)")
(format #f "strdup(~s)"
(search-input-file inputs "bin/adb")))))))))
(native-inputs
(list pkg-config
(let ((version (package-version this-package)))
(origin
(method url-fetch)
(uri (string-append
"https://github.com/Genymobile/scrcpy/releases/download/v"
version "/scrcpy-server-v" version))
(sha256
(base32
"0dn57gjn5dizpzbrgf31g969ka9bi0h12d6zx4gj3m8ik3vvckkn"))))))
(inputs (list adb ffmpeg libusb sdl3))
(home-page "https://github.com/Genymobile/scrcpy")
(synopsis "Display and control your Android device")
(description
"This application mirrors Android devices (video and audio) connected via
USB or TCP/IP and allows control using the computer's keyboard and mouse. It
does not require root access or an app installed on the device.")
(license license:asl2.0)))
+3 -3
View File
@@ -70,7 +70,7 @@ website owners block unwanted AI crawlers from accessing their sites.")
(package (package
(inherit caddy) (inherit caddy)
(name "caddy-dolly") (name "caddy-dolly")
(version "2026.10.23") (version "2026.12.03")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -79,14 +79,14 @@ website owners block unwanted AI crawlers from accessing their sites.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1amgxdy9598jpm1zkp7yvrxhj3zyzlc8rzp64mivlhhv58gmnfmz")))) "1348g60fcyzjkbb61pw0rg4xmyydpbdx7bnij6hnpa0wlv1bjq4z"))))
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(substitute-keyword-arguments arguments (substitute-keyword-arguments arguments
((#:go _ #f) go-1.27) ((#:go _ #f) go-1.27)
((#:import-path _ #f) ".") ((#:import-path _ #f) ".")
((#:vendor-hash _ #f) ((#:vendor-hash _ #f)
(base32 "1k45xgbay9fyahh7ng8y6n58m9nnv2wyjqwzyjf3via08mlh1cjm")))) (base32 "0xkh4gdw3qadag3gbw4l674p5knvarmkx51365m25cfg2fv5kawf"))))
(native-inputs '()) (native-inputs '())
(inputs '()) (inputs '())
(propagated-inputs '()) (propagated-inputs '())