projects/guix·blob python-team · refs

69 lines · 2.7 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2023, 2024 Rodion Goritskov <[email protected]>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages clifm)
20 #:use-module (guix packages)
21 #:use-module (guix gexp)
22 #:use-module (guix utils)
23 #:use-module (guix git-download)
24 #:use-module (guix build-system gnu)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (gnu packages acl)
27 #:use-module (gnu packages file)
28 #:use-module (gnu packages linux)
29 #:use-module (gnu packages readline))
30
31(define-public clifm
32 (package
33 (name "clifm")
34 (version "1.29")
35 (source
36 (origin
37 (method git-fetch)
38 (uri (git-reference
39 (url "https://github.com/leo-arch/clifm")
40 (commit (string-append "v" version))))
41 (file-name (git-file-name name version))
42 (sha256
43 (base32 "0w6m803fqzkgzndhp56001mm37b4a5ryn21f4f2pvjqql0lk5ss8"))))
44 (build-system gnu-build-system)
45 (arguments
46 `(#:make-flags (list (string-append "CC="
47 ,(cc-for-target))
48 (string-append "PREFIX="
49 (assoc-ref %outputs "out")))
50 #:phases (modify-phases %standard-phases
51 (delete 'configure)
52 (delete 'build)
53 (delete 'check)
54 (add-after 'unpack 'fix-bash-completion-directory
55 (lambda _
56 (substitute* "Makefile"
57 (("\\$\\(DATADIR\\)/bash-completion/completions")
58 "$(PREFIX)/etc/bash_completion.d")))))))
59 (inputs (list acl file libcap readline))
60 (home-page "https://github.com/leo-arch/clifm")
61 (synopsis "Command-line file manager")
62 (description
63 "Clifm is a shell-like, text-based terminal file manager
64that sits on the command line.
65
66It is built with command line principles in mind: instead of navigating
67through a big menu of files, it lets you type, exactly as you do in your
68regular shell, but easier and faster.")
69 (license license:gpl2+)))