| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages shellutils)
|
| 21 | #:use-module (gnu packages base)
|
| 22 | #:use-module (gnu packages python)
|
| 23 | #:use-module (guix licenses)
|
| 24 | #:use-module (guix packages)
|
| 25 | #:use-module (guix download)
|
| 26 | #:use-module (guix utils)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (guix build-system python))
|
| 29 |
|
| 30 | (define-public envstore
|
| 31 | (package
|
| 32 | (name "envstore")
|
| 33 | (version "2.1")
|
| 34 | (source
|
| 35 | (origin
|
| 36 | (method url-fetch)
|
| 37 | (uri (string-append "https://finalrewind.org/projects/"
|
| 38 | name "/" name "-" version ".tar.bz2"))
|
| 39 | (sha256
|
| 40 | (base32 "1x97lxad80m5blhdfanl5v2qzjwcgbij2i23701bn8mpyxsrqszi"))))
|
| 41 | (build-system gnu-build-system)
|
| 42 | (arguments
|
| 43 | `(#:test-target "test"
|
| 44 | #:make-flags (list "CC=gcc"
|
| 45 | (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
| 46 | #:phases
|
| 47 | (modify-phases %standard-phases
|
| 48 | (delete 'configure))))
|
| 49 | (home-page "https://finalrewind.org/projects/envstore/")
|
| 50 | (synopsis "Save and restore environment variables")
|
| 51 | (description "Envstore is a program for sharing environment variables
|
| 52 | between various shells or commands.")
|
| 53 | (license
|
| 54 | (non-copyleft "http://www.wtfpl.net/txt/copying/"))))
|
| 55 |
|
| 56 | (define-public trash-cli
|
| 57 | (package
|
| 58 | (name "trash-cli")
|
| 59 | (version "0.12.9.14")
|
| 60 | (source
|
| 61 | (origin
|
| 62 | (method url-fetch)
|
| 63 | (uri (pypi-uri "trash-cli" version))
|
| 64 | (sha256
|
| 65 | (base32
|
| 66 | "1p4v2qx0sy47d9c9axszq04wns63s4b7rrhmsavg948sklqdaf54"))))
|
| 67 | (build-system python-build-system)
|
| 68 | (arguments
|
| 69 | `(#:python ,python-2
|
| 70 | #:tests? #f |
| 71 | #:phases
|
| 72 | (modify-phases %standard-phases
|
| 73 | (add-before 'build 'patch-path-constants
|
| 74 | (lambda* (#:key inputs #:allow-other-keys)
|
| 75 | (let ((libc (assoc-ref inputs "libc"))
|
| 76 | (coreutils (assoc-ref inputs "coreutils")))
|
| 77 | (substitute* "trashcli/list_mount_points.py"
|
| 78 | (("\"/lib/libc.so.6\".*")
|
| 79 | (string-append "\"" libc "/lib/libc.so.6\"\n"))
|
| 80 | (("\"df\"")
|
| 81 | (string-append "\"" coreutils "/bin/df\"")))))))))
|
| 82 | (inputs `(("coreutils" ,coreutils)))
|
| 83 | (home-page "https://github.com/andreafrancia/trash-cli")
|
| 84 | (synopsis "Trash can management tool")
|
| 85 | (description
|
| 86 | "trash-cli is a command line utility for interacting with the
|
| 87 | FreeDesktop.org trash can used by GNOME, KDE, XFCE, and other common desktop
|
| 88 | environments. It can move files to the trash, and remove or list files that
|
| 89 | are already there.")
|
| 90 | (license gpl2+)))
|