guile-lib: rewrite

This commit is contained in:
AndersonTorres 2021-04-15 11:57:17 -03:00
parent 03ba2b5039
commit 08b221fa0d

View File

@ -1,20 +1,29 @@
{ lib, stdenv, fetchurl, guile, texinfo, pkg-config }: { lib
, stdenv
, fetchurl
, guile
, pkg-config
, texinfo
}:
assert stdenv ? cc && stdenv.cc.isGNU; assert stdenv ? cc && stdenv.cc.isGNU;
let stdenv.mkDerivation rec {
name = "guile-lib-${version}"; pname = "guile-lib";
version = "0.2.6.1"; version = "0.2.6.1";
in stdenv.mkDerivation {
inherit name;
src = fetchurl { src = fetchurl {
url = "mirror://savannah/guile-lib/${name}.tar.gz"; url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
sha256 = "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"; hash = "sha256-bR09DxTbnSgLjUJ9bh3sRBfd0Cv/I71Zguy24mLrPyo=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
buildInputs = [ guile texinfo ]; pkg-config
];
buildInputs = [
guile
texinfo
];
doCheck = true; doCheck = true;
@ -25,6 +34,7 @@ in stdenv.mkDerivation {
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://www.nongnu.org/guile-lib/";
description = "A collection of useful Guile Scheme modules"; description = "A collection of useful Guile Scheme modules";
longDescription = '' longDescription = ''
guile-lib is intended as an accumulation place for pure-scheme Guile guile-lib is intended as an accumulation place for pure-scheme Guile
@ -32,7 +42,6 @@ in stdenv.mkDerivation {
modules into a coherent library. Think "a down-scaled, limited-scope CPAN modules into a coherent library. Think "a down-scaled, limited-scope CPAN
for Guile". for Guile".
''; '';
homepage = "https://www.nongnu.org/guile-lib/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ]; maintainers = with maintainers; [ vyp ];
platforms = platforms.gnu ++ platforms.linux; platforms = platforms.gnu ++ platforms.linux;