diff --git a/pkgs/development/chez-modules/chez-matchable/default.nix b/pkgs/development/chez-modules/chez-matchable/default.nix new file mode 100644 index 000000000000..2b3de233f9b7 --- /dev/null +++ b/pkgs/development/chez-modules/chez-matchable/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, chez }: + +stdenv.mkDerivation rec { + pname = "chez-matchable"; + version = "20160306"; + + src = fetchFromGitHub { + owner = "fedeinthemix"; + repo = "chez-matchable"; + rev = "v${version}"; + sha256 = "02qn7x348p23z1x5lwhkyj7i8z6mgwpzpnwr8dyina0yzsdkr71s"; + }; + + buildInputs = [ chez ]; + + buildPhase = '' + make PREFIX=$out CHEZ=${chez}/bin/scheme + ''; + + installPhase = '' + make install PREFIX=$out CHEZ=${chez}/bin/scheme + ''; + + doCheck = false; + + meta = { + description = "This is a Library for ChezScheme providing the protable hygenic pattern matcher by Alex Shinn"; + homepage = https://github.com/fedeinthemix/chez-matchable/; + maintainers = [ stdenv.lib.maintainers.jitwit ]; + license = stdenv.lib.licenses.publicDomain; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b0483568cbf..d4baf7fcdd9d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7679,6 +7679,8 @@ in chez-scmutils = callPackage ../development/chez-modules/chez-scmutils { }; + chez-matchable = callPackage ../development/chez-modules/chez-matchable { }; + clang = llvmPackages.clang; clang-manpages = llvmPackages.clang-manpages;