datepicker

An fzf-like tool to interactively select a date in a provided format

git clone https://git.8pit.net/datepicker.git

 1(use-modules (guix packages)
 2             (guix gexp)
 3             (guix download)
 4             (guix build-system haskell)
 5             ((guix licenses) #:prefix license:)
 6
 7             (gnu packages haskell)
 8             (gnu packages haskell-check)
 9             (gnu packages haskell-xyz))
10
11;; The version of the time library shipped by ghc-9.2 is too old.
12(define-public ghc-time
13  (package
14    (name "ghc-time")
15    (version "1.14")
16    (source
17     (origin
18       (method url-fetch)
19       (uri (hackage-uri "time" version))
20       (sha256
21        (base32 "0gkzffnvi33ksw4zln0d31dpmqiyl8gicrx04g8j13kjr5ygx86z"))))
22    (build-system haskell-build-system)
23    (properties '((upstream-name . "time")))
24    (native-inputs (list ghc-random
25                         ghc-quickcheck
26                         ghc-tasty
27                         ghc-tasty-hunit
28                         ghc-tasty-quickcheck
29                         ghc-random
30                         ghc-quickcheck
31                         ghc-tasty
32                         ghc-tasty-hunit
33                         ghc-tasty-quickcheck))
34    (home-page "https://github.com/haskell/time")
35    (synopsis "A time library for Haskell")
36    (description "")
37    (license license:bsd-2)))
38
39(package
40  (name "datepicker")
41  (version "0.1.0")
42  (source (local-file "." "git-checkout"
43                      #:recursive? #t))
44  (build-system haskell-build-system)
45  (inputs
46    (list
47      ghc-9.2))
48  (native-inputs
49    (list
50      ghc-time
51      ghc-vty
52      ghc-vty-unix
53      ghc-optparse-applicative))
54  (synopsis "An fzf-like tool to interactively select a date in a provided format")
55  (description "")
56  (home-page "https://git.8pit.net/datepicker")
57  (license license:gpl3+))