aboutsummaryrefslogtreecommitdiff
path: root/src/xyz/euandreh/posix.scm
blob: 01c06c693ce9bdb78bd7163fca4ad1c75b611027 (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
(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)
          `(#: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)