unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 9de45ec3be2933c272c5d39a655d3ae8268b50f9 2996 bytes (raw)
name: gnu/packages/postmarketos.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2023 Sughosha <sughosha@proton.me>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages postmarketos)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system python)
  #:use-module (gnu packages admin)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages tls)
  #:use-module (gnu packages version-control))

(define-public pmbootstrap
  (package
    (name "pmbootstrap")
    (version "1.51.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "pmbootstrap" version))
              (sha256
               (base32
                "08g55fh24n3wpva7d1ps6fnk65ik49wfycjpwrjs9w0889zlwsl1"))))
    (build-system python-build-system)
    (arguments
     `(#:tests? #f
       #:phases (modify-phases %standard-phases
                  (replace 'wrap
                    (lambda* (#:key outputs #:allow-other-keys)
                      (wrap-program (string-append (assoc-ref outputs "out")
                                                   "/bin/pmbootstrap")
                        `("PATH" = ("/run/setuid-programs" ,(getenv "PATH")))
                        `("GUIX_PYTHONPATH" =
                          (,(getenv "GUIX_PYTHONPATH"))))))
                  ;; Dissociate "sudo" as setuid-programs is preferred
                  (add-after 'sanity-check 'dissociate-sudo
                    (lambda* (#:key outputs inputs #:allow-other-keys)
                      (let ((out (assoc-ref outputs "out"))
                            (sudo (assoc-ref inputs "sudo")))
                        (substitute* (string-append out "/bin/pmbootstrap")
                          (((string-append ":" sudo "/sbin"))
                           "")
                          (((string-append ":" sudo "/bin"))
                           ""))))))))
    (native-inputs (list sudo))
    (inputs (list bash-minimal git openssl procps))
    (home-page "https://git.sr.ht/~postmarketos/pmbootstrap")
    (synopsis "Bootstrap a postmarketOS system")
    (description
     "This package provides a sophisticated chroot / build / flash tool to
     develop and install postmarketOS.")
    (license license:gpl3+)))

debug log:

solving 9de45ec ...
found 9de45ec in https://yhetil.org/guix-patches/pPkb5iqZT19LQLqcOCVOnD94Y9Y_nSvMYMYSP2N2krL3rZE5m9VMMc6bAkKc_4K5_75sPWRMhpBgaDGHQ2mTTheuwIS9xxnG5HYIr30IS7s=@proton.me/ ||
	https://yhetil.org/guix-patches/MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me/

applying [1/1] https://yhetil.org/guix-patches/pPkb5iqZT19LQLqcOCVOnD94Y9Y_nSvMYMYSP2N2krL3rZE5m9VMMc6bAkKc_4K5_75sPWRMhpBgaDGHQ2mTTheuwIS9xxnG5HYIr30IS7s=@proton.me/
diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm
new file mode 100644
index 0000000..9de45ec

Checking patch gnu/packages/postmarketos.scm...
Applied patch gnu/packages/postmarketos.scm cleanly.

skipping https://yhetil.org/guix-patches/MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me/ for 9de45ec
index at:
100644 9de45ec3be2933c272c5d39a655d3ae8268b50f9	gnu/packages/postmarketos.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).