guile-cairo: rewrite

This commit is contained in:
AndersonTorres 2021-04-15 11:49:02 -03:00
parent 6ef880945a
commit 6a71d0b6bf

@ -1,23 +1,38 @@
{ lib, stdenv, fetchurl, pkg-config, guile, guile-lib, cairo, expat }: { lib
, stdenv
, fetchurl
, cairo
, expat
, guile
, guile-lib
, pkg-config
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "guile-cairo"; pname = "guile-cairo";
version = "1.11.2"; version = "1.11.2";
src = fetchurl { src = fetchurl {
url = "mirror://savannah/guile-cairo/${pname}-${version}.tar.gz"; url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
sha256 = "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"; hash = "sha256-YjLU3Cxb2dMxE5s7AfQ0PD4fucp4mDYaaZIGcwlBoHs=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
pkg-config
];
buildInputs = [
cairo
expat
guile
];
buildInputs = [ guile cairo expat ];
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = false; # Cannot find unit-test module from guile-lib doCheck = false; # Cannot find unit-test module from guile-lib
checkInputs = [ guile-lib ]; checkInputs = [ guile-lib ];
meta = with lib; { meta = with lib; {
homepage = "https://www.nongnu.org/guile-cairo/";
description = "Cairo bindings for GNU Guile"; description = "Cairo bindings for GNU Guile";
longDescription = '' longDescription = ''
Guile-Cairo wraps the Cairo graphics library for Guile Scheme. Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
@ -28,7 +43,6 @@ stdenv.mkDerivation rec {
maintained graphics library with all of the benefits of Scheme: memory maintained graphics library with all of the benefits of Scheme: memory
management, exceptions, macros, and a dynamic programming environment. management, exceptions, macros, and a dynamic programming environment.
''; '';
homepage = "https://www.nongnu.org/guile-cairo/";
license = licenses.lgpl3Plus; license = licenses.lgpl3Plus;
maintainers = with maintainers; [ vyp ]; maintainers = with maintainers; [ vyp ];
platforms = platforms.linux; platforms = platforms.linux;