@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitLab, coreutils, which }:
1+{ lib, stdenv, fetchFromGitLab, which }:
22
33stdenv.mkDerivation rec {
44 pname = "owl-lisp";
@@ -13,10 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ which ];
1515
16− prePatch = ''
17− substituteInPlace Makefile \
18− --replace /usr $out
19− '';
16+ makeFlags = [ "PREFIX=${placeholder "out"}" "CC=cc" ];
2017
2118 # tests are run as part of the compilation process
2219 doCheck = false;
@@ -26,6 +23,6 @@ stdenv.mkDerivation rec {
2623 homepage = "https://gitlab.com/owl-lisp/owl";
2724 license = licenses.mit;
2825 maintainers = with maintainers; [ peterhoeg ];
29− platforms = platforms.linux;
26+ platforms = platforms.unix;
3027 };
3128}