4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, pkgconfig, guile, guile-lib, cairo, expat }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "guile-cairo";
|
|
version = "1.11.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/guile-cairo/${pname}-${version}.tar.gz";
|
|
sha256 = "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ guile cairo expat ];
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = false; # Cannot find unit-test module from guile-lib
|
|
checkInputs = [ guile-lib ];
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
homepage = "https://www.nongnu.org/guile-cairo/";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ vyp ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|