From 54c020f3d18dd7e329226664c082b7c0c67410f7 Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Sat, 16 Dec 2023 16:52:16 +0000 Subject: [PATCH 1/3] Don't hesitate editing --- nongnu/packages/stremio.scm | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 nongnu/packages/stremio.scm diff --git a/nongnu/packages/stremio.scm b/nongnu/packages/stremio.scm new file mode 100644 index 00000000..bedbf603 --- /dev/null +++ b/nongnu/packages/stremio.scm @@ -0,0 +1,62 @@ +(define-module (nongnu packages stremio) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages qt) + #:use-module (gnu packages gcc) + #:use-module (gnu packages cmake) + #:use-module (gnu packages node) + #:use-module (gnu packages openssl) + #:use-module (nonguix build-system binary) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public stremio + (package + (name "stremio") + (version "4.4.25") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Stremio/stremio-shell.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hqqanqwcdh06f0bw3qlki8xj0xfggiajah8ym5al6n8q58vvj6a")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file-recursively ".git") + #t)))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list "release.makefile") + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda _ + (invoke "qmake") + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (copy-recursively "./build" (string-append out "/share/stremio")) + (symlink (string-append out "/share/stremio/stremio") + (string-append out "/bin/stremio")) + #t)))))) + (inputs + `(("node" ,node) + ("qtbase" ,qtbase) + ("qtdeclarative" ,qtdeclarative) + ("qttools" ,qttools) + ("gcc" ,gcc) + ("cmake" ,cmake))) + (native-inputs + `(("openssl" ,openssl))) + (home-page "https://www.stremio.com") + (synopsis "The next generation media center") + (description "Stremio is a video streaming application, that allows you to +watch and organize video content from different services, including movies, +series, live TV and video channels.") + (license license:agpl3+))) From d55c7e2e6ff867fed68113f257e75aed53a8369e Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Tue, 12 Mar 2024 15:27:09 +0000 Subject: [PATCH 2/3] Not deleting .git --- nongnu/packages/stremio.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/nongnu/packages/stremio.scm b/nongnu/packages/stremio.scm index bedbf603..615b29c3 100644 --- a/nongnu/packages/stremio.scm +++ b/nongnu/packages/stremio.scm @@ -26,7 +26,6 @@ (modules '((guix build utils))) (snippet '(begin - (delete-file-recursively ".git") #t)))) (build-system gnu-build-system) (arguments From 9157c7e3f98b59ec3222fa38314e39cdedff56ef Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Tue, 12 Mar 2024 15:29:31 +0000 Subject: [PATCH 3/3] no trailing #t in phases --- nongnu/packages/stremio.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nongnu/packages/stremio.scm b/nongnu/packages/stremio.scm index 615b29c3..fa577e4d 100644 --- a/nongnu/packages/stremio.scm +++ b/nongnu/packages/stremio.scm @@ -36,7 +36,7 @@ (replace 'configure (lambda _ (invoke "qmake") - #t)) + )) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))