2018-05-10 14:27:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, which }:
|
2017-07-21 12:03:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "owl-lisp-${version}";
|
2018-06-08 08:39:17 +00:00
|
|
|
version = "0.1.16";
|
2017-07-21 12:03:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aoh";
|
|
|
|
repo = "owl-lisp";
|
|
|
|
rev = "v${version}";
|
2018-06-08 08:39:17 +00:00
|
|
|
sha256 = "1qp6p48bmlyn83rqi6k3d098dg4cribavg5rd4x17z37i181vxvj";
|
2017-07-21 12:03:20 +00:00
|
|
|
};
|
|
|
|
|
2018-05-10 14:27:56 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
2017-07-21 12:03:20 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
|
|
|
|
|
|
|
for f in tests/run tests/exec.sh ; do
|
|
|
|
substituteInPlace $f --replace /bin/echo ${coreutils}/bin/echo
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-05-10 14:27:56 +00:00
|
|
|
# tests are run as part of the compilation process
|
2017-07-21 12:03:20 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-12-05 22:20:11 +00:00
|
|
|
description = "A functional lisp";
|
2017-07-21 12:03:20 +00:00
|
|
|
homepage = https://github.com/aoh/owl-lisp;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|