Advertisement
gliolio

ddev guix package definition

Aug 22nd, 2019
868
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 2.08 KB | None
  1. (define-module (ddev)
  2.   #:use-module (guix packages)
  3.   #:use-module (guix build-system gnu)
  4.   #:use-module (guix licenses)
  5.   #:use-module (guix git-download)
  6.   #:use-module (gnu packages networking)
  7.   #:use-module (gnu packages golang)
  8.   ;; how to add go as a native dep?
  9.   #:use-module (gnu packages docker)
  10.   )
  11.  
  12. ;; Losthope of compiling the ddev package
  13. ;; This is the try of creating bin version of a package
  14.  
  15. (define-public ddev-bin
  16.   (package
  17.    (name "ddev-bin")
  18.    (version "1.10.2")
  19.    (source (origin
  20.             ;; (method git-fetch)
  21.            ;;  (uri (git-reference
  22.            ;;        (url "https://github.com/drud/ddev.git")
  23.            ;;        (commit (string-append "v" version))))
  24.             ;; (file-name (git-file-name name version))
  25.             (method url-fetch)
  26.             (uri (string-append "https://github.com/drud/ddev/releases/tag/v1.10.2/ddev-" version ".x86_64_linux.bottle.tar.gz" )) ;;ddev-1.10.2.x86_64_linux.bottle.tar.gz ;; https://github.com/drud/ddev/releases/tag/v1.10.2
  27.             (sha256
  28.              (base32 "a69f208edf661ad549043a76dbf69eb5a51ce3b849ef80f5e02f746b564f96d4")
  29.             ;; (base32 "19ay7v9lw9x09l8rjd7kp10wiyjkcav5f8h224x7jc6vlli5j9xi")
  30.             )
  31.            )
  32.          )
  33.    (build-system gnu-build-system)
  34.    (arguments
  35.     `(#:tests? #f
  36.       #:phases
  37.       (modify-phases %standard-phases
  38.                      (delete 'configure)
  39.                      (delete 'check))
  40.       ))
  41.    (inputs
  42.     `(("docker" ,docker)
  43.       ("docker-compose" ,docker-compose)
  44.       )
  45.     )
  46.    (native-inputs
  47.     `(("go" ,go))
  48.     )
  49.    (home-page "https://github.com/drud/ddev")
  50.    (synopsis "ddev is an open source tool that makes it simple to get local PHP development environments up and running in minutes.")
  51.    (description "It's powerful and flexible as a result of its per-project environment configurations, which can be extended, version controlled, and shared. In short, ddev aims to allow development teams to use Docker in their workflow without the complexities of bespoke configuration.")
  52.    (license asl2.0)))
  53.  
  54. ddev-bin
Advertisement
RAW Paste Data Copied
Advertisement