projects/guix·blob version-0.11.0 · refs

90 lines · 3.4 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Matthew Jordan <[email protected]>
3;;; Copyright © 2016 Alex Griffin <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
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
52between 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 ; no tests
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
87FreeDesktop.org trash can used by GNOME, KDE, XFCE, and other common desktop
88environments. It can move files to the trash, and remove or list files that
89are already there.")
90 (license gpl2+)))