2022-03-30 09:31:56 +00:00
|
|
|
|
{ stdenv, lib, fetchFromGitHub, chez, chez-srfi, chez-mit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "chez-scmutils";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
version = "0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "fedeinthemix";
|
|
|
|
|
repo = "chez-scmutils";
|
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
sha256 = "sha256-y2ug7GfmkJC6jddgB8YllsumjmGxFJxTGTpPf1Vcs/s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
buildInputs = [ chez chez-srfi chez-mit ];
|
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
lib-path = "lib/csv${lib.versions.majorMinor chez.version}-site";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
makeFlags = [
|
|
|
|
|
"CHEZ=${lib.getExe chez}"
|
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
|
"CHEZSCHEMELIBDIRS=${chez-srfi}/${lib-path}:${chez-mit}/${lib-path}"
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "This is a port of the ‘MIT Scmutils’ library to Chez Scheme";
|
|
|
|
|
homepage = "https://github.com/fedeinthemix/chez-scmutils/";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
maintainers = [ maintainers.jitwit ];
|
|
|
|
|
license = licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|