[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: Add apt-mirror.
From: |
guix-commits |
Subject: |
03/06: gnu: Add apt-mirror. |
Date: |
Thu, 30 Apr 2020 19:21:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 524e5fe56b602d2ccb1dd2bf5a50a0e6ca397759
Author: Jean-Baptiste Note <address@hidden>
AuthorDate: Sun Apr 26 05:59:48 2020 -0400
gnu: Add apt-mirror.
* gnu/packages/debian.scm (apt-mirror): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/debian.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm
index ff4cccb..a3bbd2b 100644
--- a/gnu/packages/debian.scm
+++ b/gnu/packages/debian.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages gnupg)
+ #:use-module (gnu packages wget)
#:use-module (gnu packages perl))
(define-public debian-archive-keyring
@@ -190,3 +191,40 @@ scratch, without requiring the availability of @code{dpkg}
or @code{apt}.
It does this by downloading .deb files from a mirror site, and carefully
unpacking them into a directory which can eventually be chrooted into.")
(license license:gpl2)))
+
+
+(define-public apt-mirror
+ (let ((commit "e664486a5d8947c2579e16dd793d762ea3de4202")
+ (revision "1"))
+ (package
+ (name "apt-mirror")
+ (version (git-version "0.5.4" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/apt-mirror/apt-mirror/")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0qj6b7gldwcqyfs2kp6amya3ja7s4vrljs08y4zadryfzxf35nqq"))))
+ (build-system gnu-build-system)
+ (outputs '("out"))
+ (arguments
+ `(#:tests? #f
+ ;; sysconfdir is not PREFIXed in the makefile but DESTDIR is
+ ;; honored correctly; we therefore use DESTDIR for our
+ ;; needs. A more correct fix would involve patching.
+ #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs
"out"))
+ "PREFIX=/")
+ #:phases (modify-phases %standard-phases (delete 'configure))))
+ (inputs
+ `(("wget" ,wget)
+ ("perl" ,perl)))
+ (home-page "http://apt-mirror.github.io/")
+ (synopsis "Script for mirroring a Debian repository")
+ (description
+ "apt-mirror is a small tool that provides the ability to
+selectively mirror Debian and Ubuntu GNU/Linux distributions or any
+other apt sources typically provided by open source developers.")
+ (license license:gpl2))))
- branch master updated (229f4fa -> 02ee43e), guix-commits, 2020/04/30
- 02/06: gnu: balsa: Update to 2.6.0., guix-commits, 2020/04/30
- 01/06: profiles: Mark manual database as non-substitutable., guix-commits, 2020/04/30
- 04/06: gnu: umockdev: Fix test., guix-commits, 2020/04/30
- 03/06: gnu: Add apt-mirror.,
guix-commits <=
- 05/06: gnu: Add libqb., guix-commits, 2020/04/30
- 06/06: gnu: Add usbguard., guix-commits, 2020/04/30