summaryrefslogtreecommitdiffstats
path: root/indeedwatcher.scm
blob: 83ad8df896a35d4a671d2054f9b9e14da9232ac6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(define-module (indeedwatcher)
               #:use-module (guix licenses)
               #:use-module (guix packages)
               #:use-module (guix build-system gnu)
               #:use-module (guix download)
               #:use-module (guix git-download)
               #:use-module (gnu packages nim)
               )




(define-public indeedwatcher
               (package
                 (name "indeedwatcher")
                 (version "1.1.3")
                 (source (origin
                           (method git-fetch)
                           (uri (git-reference
                                  (url "https://git.techchud.xyz/indeedwatcher")
                                  (commit (string-append "v" version))))
                           (file-name (git-file-name name version))
                           (sha256
                             (base32
                               "1qsq364zqyqwxj8qji3r3wr3ch4704jnhsjyj83q7nprgjdvgd9a"))))
                 (build-system gnu-build-system)
                 (inputs (list nim))
                 (arguments
                   `(#:tests? #f
                     #:phases
                     (modify-phases %standard-phases
                                    (delete 'configure)
                                    (replace 'build
                                             (lambda _
                                               (mkdir-p "bin")
                                               (invoke "nimble" "build" "--nimbleDir:./bin/" "-y")
                                               #t))
                                    (replace 'install
                                             (lambda* (#:key outputs #:allow-other-keys)
                                             (let* ((out  (assoc-ref outputs "out"))
                                                    (bin  (string-append out "/bin"))
                                                    (man1 (string-append out "/share/man/man1")))
                                               (install-file "./bin/indeedwatcher" bin)))))))
                   (synopsis "Scrapes indeed for job listings")
                   (description
                     "This is a nim program for getting jobs from
                     indeed delivered to you in an easy to parse format.")
                                             (home-page "https://git.techchud.xyz/indeedwatcher/")
                                             (license agpl3)))