aboutsummaryrefslogtreecommitdiff
path: root/tests/print.scm
blob: d4b2cca93f520c0d8946008eedc2928f8b210cc1 (about) (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (test-print)
  #:use-module (guix import print)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix licenses)
  #:use-module (srfi srfi-64))

(define-syntax-rule (define-with-source object source expr)
  (begin
    (define object expr)
    (define source 'expr)))

(test-begin "print")

(define-with-source pkg pkg-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system gnu-build-system)
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license gpl3+)))

(define-with-source pkg-with-inputs pkg-with-inputs-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system gnu-build-system)
    (inputs `(("coreutils" ,(@ (gnu packages base) coreutils))
              ("glibc" ,(@ (gnu packages base) glibc) "debug")))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license gpl3+)))

(test-equal "simple package"
  pkg-source
  (package->code pkg))

(test-equal "package with inputs"
  pkg-with-inputs-source
  (package->code pkg-with-inputs))

(test-end "print")
rl-7.61.0): ... new variable. 2018-05-21Merge branch 'master' into core-updatesMark H Weaver 2018-05-21gnu: curl: Update replacement to 7.60.0 [Fixes CVE-2018-{1000300,1000301}].Leo Famulari * gnu/packages/curl.scm (curl)[replacement]: Update to 7.60.0. (curl-7.59.0): Replace with ... (curl-7.60.0): ... new variable. 2018-04-21Merge branch 'master' into core-updatesMark H Weaver 2018-04-19gnu: guile-curl: Use invoke.Roel Janssen * gnu/packages/curl.scm (guile-curl): Use invoke instead of system*. 2018-04-18gnu: Add guile-curl.Roel Janssen * gnu/packages/curl.scm (guile-curl): New variable. 2018-03-28gnu: curl: Use nghttp2's ‘lib’ output.Tobias Geerinckx-Rice This follows up on commit 1300e4ee5bf97e7687aa0fa5497d87cf1afaa813, which was based on a monolithic nghttp2. * gnu/packages/curl.scm (curl)[inputs]: Use nghttp2's ‘lib’ output. 2018-03-23gnu: curl: Use invoke.Mark H Weaver * gnu/packages/curl.scm (curl)[arguments]: Use invoke in the check phase. 2018-03-17gnu: curl: Ungraft.Mark H Weaver * gnu/packages/curl.scm (curl): Update to 7.59.0. [replacement]: Remove field. (curl-7.59.0): Remove variable. 2018-03-14gnu: curl: Add HTTP/2 support.Tobias Geerinckx-Rice * gnu/packages/curl.scm (curl)[inputs]: Add nghttp2. 2018-03-14gnu: curl: Update replacement to 7.59.0 [security fixes].Marius Bakke This fixes CVE-2018-1000120, CVE-2018-1000121, and CVE-2018-1000122. * gnu/packages/curl.scm (curl-7.58.0): Rename to ... (curl-7.59.0): ... this. Update source hash. (curl)[replacement]: Adjust accordingly. 2018-03-14gnu: kurly: Update to 1.2.1.Tobias Geerinckx-Rice * gnu/packages/curl.scm (kurly): Update to 1.2.1. [arguments]: Install the man page, and put README.md in its right place. Rename ‘install-readme’ to ‘install-documentation’ to match this change. 2018-03-04gnu: kurly: Declare a source file-name.Efraim Flashner * gnu/packages/curl.scm (kurly)[source]: Declare a source file-name. 2018-01-24Merge branch 'master' into core-updatesMark H Weaver 2018-01-24gnu: curl: Update replacement to 7.58.0 [fixes CVE-2018-{1000005,1000007}].Leo Famulari * gnu/packages/curl.scm (curl)[replacement]: Update to 7.58.0. (curl-7.57.0): Replace with curl-7.58.0. 2018-01-11Merge branch 'master' into core-updatesLeo Famulari 2018-01-08gnu: kurly: Install some documentation.Leo Famulari * gnu/packages/curl.scm (kurly)[arguments]: Install the README in an 'install-readme' phase and don't install the source code. 2018-01-03Merge branch 'master' into core-updatesLeo Famulari 2017-12-31gnu: Add kurly.Leo Famulari * gnu/packages/curl.scm (kurly): New variable. 2017-12-13gnu: curl: Remove obsolete workaround.Marius Bakke * gnu/packages/curl.scm (curl)[arguments]: Remove 'fix-Makefile' phase. 2017-12-13gnu: curl: Add a search path for CURL_CA_BUNDLE.Marius Bakke * gnu/packages/curl.scm (curl)[native-search-paths]: New field. * gnu/packages/image-viewers.scm (feh)[native-search-paths]: Inherit. 2017-12-05gnu: curl: Remove graft for 7.57.0.Marius Bakke * gnu/packages/curl.scm (curl): Update to 7.57.0. (curl-7.57.0): Remove variable. 2017-12-05Merge branch 'master' into core-updatesMarius Bakke 2017-11-29gnu: curl: Update to 7.57.0 [fixes CVE-2017-{8816,8817,8818}].Leo Famulari * gnu/packages/curl.scm (curl): Update replacement to 7.57.0. (curl-7.56.1): Replace with ... (curl-7.57.0): ... new variable.