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