2021-04-15 14:49:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cairo
|
|
|
|
, expat
|
|
|
|
, guile
|
|
|
|
, guile-lib
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2009-10-05 22:21:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "guile-cairo";
|
2020-12-02 09:37:31 +00:00
|
|
|
version = "1.11.2";
|
2009-10-05 22:21:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-15 14:49:02 +00:00
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-YjLU3Cxb2dMxE5s7AfQ0PD4fucp4mDYaaZIGcwlBoHs=";
|
2009-10-05 22:21:24 +00:00
|
|
|
};
|
|
|
|
|
2021-04-15 14:49:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
expat
|
|
|
|
guile
|
|
|
|
];
|
2017-09-28 16:32:57 +00:00
|
|
|
|
2018-10-13 13:38:57 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-10-05 22:21:24 +00:00
|
|
|
|
2019-05-18 17:07:56 +00:00
|
|
|
doCheck = false; # Cannot find unit-test module from guile-lib
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ guile-lib ];
|
2009-10-05 22:21:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-15 14:49:02 +00:00
|
|
|
homepage = "https://www.nongnu.org/guile-cairo/";
|
2017-09-24 11:03:56 +00:00
|
|
|
description = "Cairo bindings for GNU Guile";
|
|
|
|
longDescription = ''
|
|
|
|
Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
|
|
|
|
|
|
|
|
Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
|
|
|
|
stable, providing a firm base on which to do graphics work. Finally, and
|
|
|
|
importantly, it is pleasant to use. You get a powerful and well
|
|
|
|
maintained graphics library with all of the benefits of Scheme: memory
|
|
|
|
management, exceptions, macros, and a dynamic programming environment.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
|
|
|
platforms = platforms.linux;
|
2009-10-05 22:21:24 +00:00
|
|
|
};
|
|
|
|
}
|