summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Streit <simon@netpanic.org>2022-08-24 18:06:10 +0200
committerSimon Streit <simon@netpanic.org>2023-06-19 21:36:36 +0200
commitab0a6bb20b38cac8a8684454105ef9f7233567b2 (patch)
tree0a435d3dcad3b16ad0f7fdd1dd6bb23a24798b51
parent34b0f54fc64c8abb7be8a47a63abc10902b6355f (diff)
siguix: Add go-github-com-gotk3-gotk3-cairo.
* siguix/packages/gotk3.scm: Add it.
-rw-r--r--siguix/packages/gotk3.scm62
1 files changed, 62 insertions, 0 deletions
diff --git a/siguix/packages/gotk3.scm b/siguix/packages/gotk3.scm
new file mode 100644
index 0000000..29c5066
--- /dev/null
+++ b/siguix/packages/gotk3.scm
@@ -0,0 +1,62 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2021, 2022 Simon Streit <simon@netpanic.org>
+;;;
+;;; This file is NOT 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 (siguix packages gotk3)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix download)
+ #:use-module (guix utils)
+ #:use-module (guix build-system go)
+ #:use-module (guix git-download)
+ #:use-module (guix packages)
+ #:use-module (gnu packages)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages glib)
+ #:use-module (gnu packages gtk)
+ #:use-module (gnu packages pkg-config))
+
+(define-public (go-github-com-gotk3-package suffix)
+ (package
+ (name (string-append "go-github-com-gotk3-gotk3-"
+ (string-replace-substring suffix "/" "-")))
+ (version "0.6.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gotk3/gotk3")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rhzpp0avvdkna4prr4yx9jqvziyhpb0fwx88rplkykakcawgbyh"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:unpack-path "github.com/gotk3/gotk3"
+ #:import-path ,(string-append "github.com/gotk3/gotk3/" suffix)))
+ (inputs (list gtk+ glib cairo gdk-pixbuf))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/gotk3/gotk3")
+ (synopsis "@code{go-github-com-gotk3} part")
+ (description "This package provides a part of
+@code{go-github-com-gotk3}.")
+ (license license:isc)))
+
+(define-public go-github-com-gotk3-gotk3-cairo
+ (package
+ (inherit (go-github-com-gotk3-package "cairo"))
+ (synopsis "Bindings for cairo")
+ (description "Bindings for cairo")))