aboutsummaryrefslogtreecommitdiff
path: root/src/xyz/euandreh/posix.scm
blob: bd8f9dd60ab819b719fdd4104d269e7b67c246bd (about) (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
(define-module (xyz euandreh posix)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages c))

(define-public tcc-c99
  (package
    (inherit tcc)
    (name "posix-c99")
    (arguments
     `(,@(ensure-keyword-arguments
          (package-arguments tcc)
          `(#:parallel-build? #f
            #:parallel-tests? #f
            #:phases
            (modify-phases %standard-phases
              (add-after 'install 'ln-alias
                (lambda* (#:key outputs #:allow-other-keys)
                  (let ((out (assoc-ref outputs "out")))
                    (symlink (string-append out "/bin/tcc")
                             (string-append out "/bin/c99"))))))))))))

(list
 tcc-c99)