1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/development/compilers/owl-lisp/default.nix

34 lines
816 B
Nix
Raw Normal View History

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