diff options
author | Franz Geffke <franz@pantherx.org> | 2024-03-30 16:27:46 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2024-03-30 16:27:46 +0000 |
commit | 139c3543fdf2c1877a8e9d986bfe8b477cc5e7a1 (patch) | |
tree | 96af5bbc8d0a92401df19c0e37857894fba1f948 | |
parent | 9cdd9ffb102e762d609d4a76f9e0d3d41b971863 (diff) |
px-software: move to package-management module
-rw-r--r-- | px/packages/package-management.scm | 90 | ||||
-rw-r--r-- | px/packages/software.scm | 91 |
2 files changed, 84 insertions, 97 deletions
diff --git a/px/packages/package-management.scm b/px/packages/package-management.scm index d57c7c4..c296c6d 100644 --- a/px/packages/package-management.scm +++ b/px/packages/package-management.scm @@ -1,15 +1,21 @@ (define-module (px packages package-management) - #:use-module (gnu packages) - #:use-module (gnu packages python-build) - #:use-module (gnu packages python-xyz) - #:use-module (gnu packages guile) - #:use-module (gnu packages pkg-config) #:use-module (guix build-system python) #:use-module (guix build-system cmake) + #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix packages) #:use-module ((guix licenses) - #:prefix license:)) + #:prefix license:) + #:use-module (gnu packages) + #:use-module (gnu packages serialization) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages guile) + #:use-module (gnu packages databases) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages compression) + #:use-module (gnu packages qt) + #:use-module (px packages library)) (define-public px (package @@ -83,3 +89,75 @@ and simply prevent running the upgrade twice before rebooting.") (description "Automate `guix` package manager tasks using scheme scripts. this tool is developed for PantherX team internal usage.") (license license:expat))) + +(define-public px-software-assets-meta + (package + (name "px-software-assets-meta") + (version "0.1.6") + (source + (origin + (method url-fetch) + (uri (string-append + "https://assets.software.pantherx.org/px-software-assets_meta_" + version ".tgz")) + (sha256 + (base32 "0wd4gnsy9sw3cbm8b587qkscap7ljr0hbg6hk2c7pjy69rq0q5nr")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils) + (srfi srfi-26)) + (let* ((source (assoc-ref %build-inputs "source")) + (tar (assoc-ref %build-inputs "tar")) + (gzip (assoc-ref %build-inputs "gzip")) + (wiki-dir (string-append %output + "/share/px-software-assets-meta"))) + (mkdir-p wiki-dir) + (setenv "PATH" + (string-append gzip "/bin")) + (invoke (string-append tar "/bin/tar") "xvf" source "-C" + wiki-dir))))) + (native-inputs `(("tar" ,tar) + ("gzip" ,gzip))) + (inputs `(("bash" ,bash))) + (home-page + "https://git.pantherx.org/development/applications/px-software-assets/") + (synopsis "PantherX Software Assets meta file.") + (description "PantherX Software Assets meta file.") + (license license:expat))) + +(define-public px-software + (package + (name "px-software") + (version "0.3.7") + (source + (origin + (method url-fetch) + (uri (string-append "https://source.pantherx.org/px-software_v" version + ".tgz")) + (sha256 + (base32 "069hcfw6jm3yhb04n16yma9nh7zlm11szw0an6zhraz3rigr1w8w")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'install 'set-executable + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "chmod" "755" + (string-append out + "/bin/px-software-update-check")) #t)))))) + (inputs `(("yaml-cpp" ,yaml-cpp))) + (native-inputs `(("guile" ,guile-3.0-latest) + ("recutils" ,recutils) + ("px-gui-library" ,px-gui-library) + ("qtbase" ,qtbase-5) + ("qtlinguist" ,qttools-5) + ("zlib" ,zlib))) + (home-page "https://www.pantherx.org/") + (synopsis "PantherX Software") + (description "Software Application for PantherX") + (license license:gpl3))) + + diff --git a/px/packages/software.scm b/px/packages/software.scm deleted file mode 100644 index 6a9b152..0000000 --- a/px/packages/software.scm +++ /dev/null @@ -1,91 +0,0 @@ -;;; Software Application for PantherX -;;; Reza Alizadeh Majd (r.majd@pantherx.org) - -(define-module (px packages software) - #:use-module (guix build-system cmake) - #:use-module (guix build-system trivial) - #:use-module (guix download) - #:use-module (guix utils) - #:use-module ((guix licenses) - #:prefix license:) - #:use-module (guix packages) - #:use-module (gnu packages base) - #:use-module (gnu packages bash) - #:use-module (gnu packages compression) - #:use-module (gnu packages databases) - #:use-module (gnu packages gcc) - #:use-module (gnu packages guile) - #:use-module (gnu packages qt) - #:use-module (px packages library) - #:use-module (gnu packages serialization)) - -(define-public px-software-assets-meta - (package - (name "px-software-assets-meta") - (version "0.1.6") - (source - (origin - (method url-fetch) - (uri (string-append - "https://assets.software.pantherx.org/px-software-assets_meta_" - version ".tgz")) - (sha256 - (base32 "0wd4gnsy9sw3cbm8b587qkscap7ljr0hbg6hk2c7pjy69rq0q5nr")))) - (build-system trivial-build-system) - (arguments - `(#:modules ((guix build utils)) - #:builder (begin - (use-modules (guix build utils) - (srfi srfi-26)) - (let* ((source (assoc-ref %build-inputs "source")) - (tar (assoc-ref %build-inputs "tar")) - (gzip (assoc-ref %build-inputs "gzip")) - (wiki-dir (string-append %output - "/share/px-software-assets-meta"))) - (mkdir-p wiki-dir) - (setenv "PATH" - (string-append gzip "/bin")) - (invoke (string-append tar "/bin/tar") "xvf" source "-C" - wiki-dir))))) - (native-inputs `(("tar" ,tar) - ("gzip" ,gzip))) - (inputs `(("bash" ,bash))) - (home-page - "https://git.pantherx.org/development/applications/px-software-assets/") - (synopsis "PantherX Software Assets meta file.") - (description "PantherX Software Assets meta file.") - (license license:expat))) - -(define-public px-software - (package - (name "px-software") - (version "0.3.7") - (source - (origin - (method url-fetch) - (uri (string-append "https://source.pantherx.org/px-software_v" version - ".tgz")) - (sha256 - (base32 "069hcfw6jm3yhb04n16yma9nh7zlm11szw0an6zhraz3rigr1w8w")))) - (build-system cmake-build-system) - (arguments - `(#:tests? #f - #:phases (modify-phases %standard-phases - (add-after 'install 'set-executable - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (invoke "chmod" "755" - (string-append out - "/bin/px-software-update-check")) #t)))))) - (inputs `(("yaml-cpp" ,yaml-cpp))) - (native-inputs `(("guile" ,guile-3.0-latest) - ("recutils" ,recutils) - ("px-gui-library" ,px-gui-library) - ("qtbase" ,qtbase-5) - ("qtlinguist" ,qttools-5) - ("zlib" ,zlib))) - (home-page "https://www.pantherx.org/") - (synopsis "PantherX Software") - (description "Software Application for PantherX") - (license license:gpl3))) - |