nixpkgs-suyu/pkgs/development/compilers/owl-lisp/default.nix

34 lines
816 B
Nix
Raw Normal View History

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}";
version = "0.1.16";
2017-07-21 14:03:20 +02:00
src = fetchFromGitHub {
owner = "aoh";
repo = "owl-lisp";
rev = "v${version}";
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; {
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 ];
};
}