2018-05-10 16:27:56 +02:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, which }:
|
2017-07-21 14:03:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "owl-lisp-${version}";
|
2018-06-08 10:39:17 +02:00
|
|
|
version = "0.1.16";
|
2017-07-21 14:03:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aoh";
|
|
|
|
repo = "owl-lisp";
|
|
|
|
rev = "v${version}";
|
2018-06-08 10:39:17 +02:00
|
|
|
sha256 = "1qp6p48bmlyn83rqi6k3d098dg4cribavg5rd4x17z37i181vxvj";
|
2017-07-21 14:03:20 +02:00
|
|
|
};
|
|
|
|
|
2018-05-10 16:27:56 +02:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
2017-07-21 14:03:20 +02: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 16:27:56 +02:00
|
|
|
# tests are run as part of the compilation process
|
2017-07-21 14:03:20 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-12-05 23:20:11 +01:00
|
|
|
description = "A functional lisp";
|
2017-07-21 14:03:20 +02:00
|
|
|
homepage = https://github.com/aoh/owl-lisp;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|