| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages ncdu)
|
| 22 | #:use-module (gnu packages)
|
| 23 | #:use-module (gnu packages bash)
|
| 24 | #:use-module (gnu packages compression)
|
| 25 | #:use-module (gnu packages ncurses)
|
| 26 | #:use-module (gnu packages pkg-config)
|
| 27 | #:use-module (gnu packages zig)
|
| 28 | #:use-module (guix licenses)
|
| 29 | #:use-module (guix packages)
|
| 30 | #:use-module (guix download)
|
| 31 | #:use-module (guix utils)
|
| 32 | #:use-module (guix gexp)
|
| 33 | #:use-module (guix build-system gnu)
|
| 34 | #:use-module (guix build-system zig))
|
| 35 |
|
| 36 | (define-public ncdu-1
|
| 37 | |
| 38 | |
| 39 | |
| 40 | (package
|
| 41 | (name "ncdu")
|
| 42 | (version "1.22")
|
| 43 | (source (origin
|
| 44 | (method url-fetch)
|
| 45 | (uri (string-append "https://dev.yorhel.nl/download/ncdu-"
|
| 46 | version ".tar.gz"))
|
| 47 | (sha256
|
| 48 | (base32
|
| 49 | "0sqp39lkryjljvvrwv0x37a9fklg3g060iqhh42i5m84vjbc1mha"))))
|
| 50 | (build-system gnu-build-system)
|
| 51 | (arguments
|
| 52 | (list #:configure-flags
|
| 53 | |
| 54 | #~(list (string-append "--with-shell="
|
| 55 | #$(this-package-input "bash-minimal")
|
| 56 | "/bin/sh"))))
|
| 57 | (native-inputs (list pkg-config))
|
| 58 | (inputs (list bash-minimal ncurses))
|
| 59 | (synopsis "Ncurses-based disk usage analyzer")
|
| 60 | (description
|
| 61 | "Ncdu is a disk usage analyzer with an ncurses interface, aimed to be
|
| 62 | run on a remote server where you don't have an entire graphical setup, but have
|
| 63 | to do with a simple SSH connection. ncdu aims to be fast, simple and easy to
|
| 64 | use, and should be able to run in any minimal POSIX-like environment with
|
| 65 | ncurses installed.")
|
| 66 | (license (x11-style "file://COPYING"))
|
| 67 | (home-page "https://dev.yorhel.nl/ncdu")))
|
| 68 |
|
| 69 | (define-public ncdu
|
| 70 | (package
|
| 71 | (inherit ncdu-1)
|
| 72 | (name "ncdu")
|
| 73 | (version "2.9.2")
|
| 74 | (source (origin
|
| 75 | (method url-fetch)
|
| 76 | (uri (string-append "https://dev.yorhel.nl/download/ncdu-"
|
| 77 | version ".tar.gz"))
|
| 78 | (sha256
|
| 79 | (base32
|
| 80 | "1jffh675rpm3rfl0qk2ja9z1x6a6f8ksq2scrbr6jrdn3hl3a4g9"))))
|
| 81 | (build-system zig-build-system)
|
| 82 | (arguments
|
| 83 | (list #:zig zig-0.14
|
| 84 | #:install-source? #f
|
| 85 | #:zig-release-type "safe"
|
| 86 | #:zig-build-flags
|
| 87 | #~(list "-Dpie")))
|
| 88 | (inputs (list ncurses `(,zstd "lib")))
|
| 89 | (native-inputs (list pkg-config))
|
| 90 | (properties `((tunable? . #t)))))
|