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;
let
name = "guile-lib-${version}";
stdenv.mkDerivation rec {
pname = "guile-lib";
version = "0.2.6.1";
in stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://savannah/guile-lib/${name}.tar.gz";
sha256 = "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd";
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
hash = "sha256-bR09DxTbnSgLjUJ9bh3sRBfd0Cv/I71Zguy24mLrPyo=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ guile texinfo ];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
guile
texinfo
];
doCheck = true;
@ -25,6 +34,7 @@ in stdenv.mkDerivation {
'';
meta = with lib; {
homepage = "https://www.nongnu.org/guile-lib/";
description = "A collection of useful Guile Scheme modules";
longDescription = ''
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
for Guile".
'';
homepage = "https://www.nongnu.org/guile-lib/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.gnu ++ platforms.linux;