summaryrefslogtreecommitdiff
path: root/px/packages/package-management.scm
diff options
context:
space:
mode:
authorFranz Geffke <franz@pantherx.org>2023-06-25 16:07:34 +0100
committerFranz Geffke <franz@pantherx.org>2023-06-25 16:07:34 +0100
commit54b4056ac571611892c743b65f4c47dc298c49da (patch)
tree36e4a84137d2b9bc9a241cf82563da6114bf6189 /px/packages/package-management.scm
initial commit
Diffstat (limited to 'px/packages/package-management.scm')
-rw-r--r--px/packages/package-management.scm56
1 files changed, 56 insertions, 0 deletions
diff --git a/px/packages/package-management.scm b/px/packages/package-management.scm
new file mode 100644
index 0000000..666947f
--- /dev/null
+++ b/px/packages/package-management.scm
@@ -0,0 +1,56 @@
+(define-module (px packages package-management)
+ #:use-module (gnu packages)
+ #:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-xyz)
+ #:use-module (guix build-system python)
+ #:use-module (guix download)
+ #:use-module (guix packages)
+ #:use-module ((guix licenses) #:prefix license:))
+
+(define-public px
+ (package
+ (name "px")
+ (version "0.0.17")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://source.pantherx.org/" name "_v" version ".tgz"))
+ (sha256 (base32 "1xyvdykcs0hsmcji19aivw5ir2153wjbh75ni12sbdjwm994r5wp"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'sanity-check))))
+ (inputs
+ `(("python-appdirs" ,python-appdirs)))
+ (home-page "https://www.pantherx.org/")
+ (synopsis "px is a guix overlay that aims to automate certain steps")
+ (description "This package provides a number of helpers that combine repetitive
+guix commands into one-liners; for ex. px update apply.")
+ (license license:gpl3)))
+
+(define-public px-unattended-upgrades
+ (package
+ (name "px-unattended-upgrades")
+ (version "0.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://source.pantherx.org/" name "_v" version ".tgz"))
+ (sha256 (base32 "0qzkx32wyfy8i12zcfx761kbd8nmxlw6ihcgqpycjkb3f2qgfs05"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'sanity-check))))
+ (inputs
+ `(("px" ,px)
+ ("python-appdirs" ,python-appdirs)
+ ("python-psutil" ,python-psutil)))
+ (home-page "https://www.pantherx.org/")
+ (synopsis "Unattended upgrades limited to run once per boot")
+ (description "Unattended upgrades are to be run as root system service or via cron
+and simply prevent running the upgrade twice before rebooting.")
+ (license license:expat)))