summary refs log tree commit diff
path: root/pkgs/development/chez-modules/chez-scmutils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/chez-modules/chez-scmutils/default.nix')
-rw-r--r--pkgs/development/chez-modules/chez-scmutils/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/chez-modules/chez-scmutils/default.nix b/pkgs/development/chez-modules/chez-scmutils/default.nix
new file mode 100644
index 00000000000..ceebef11363
--- /dev/null
+++ b/pkgs/development/chez-modules/chez-scmutils/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchgit, chez, chez-srfi, chez-mit }:
+
+stdenv.mkDerivation {
+  pname = "chez-scmutils";
+  version = "1.0";
+
+  src = fetchgit {
+    url = "https://github.com/fedeinthemix/chez-scmutils.git";
+    rev = "5eaeea6289fd239358d7eed99cc9588528fb52b2";
+    sha256 = "0lb05wlf8qpgg8y0gdsyaxg1nbfx1qbaqdjvygrp64ndn8fnhq7l";
+  };
+
+  buildInputs = [ chez chez-srfi chez-mit ];
+
+  buildPhase = ''
+    export CHEZSCHEMELIBDIRS=${chez-srfi}/lib/csv9.5-site:${chez-mit}/lib/csv9.5-site
+    make PREFIX=$out CHEZ=${chez}/bin/scheme
+  '';
+
+  installPhase = ''
+    make install PREFIX=$out CHEZ=${chez}/bin/scheme
+  '';
+
+  doCheck = false;
+
+  meta = {
+    description = "This is a port of the ‘MIT Scmutils’ library to Chez Scheme";
+    homepage = https://github.com/fedeinthemix/chez-scmutils/;
+    maintainers = [ stdenv.lib.maintainers.jitwit ];
+    license = stdenv.lib.licenses.gpl3;
+  };
+
+}