@@ -11,7 +11,20 @@ stdenv.mkDerivation rec {
1111 sha256 = "sha256-TzJbHmHIySlf3asQ02HOdehMR+s0KkPifBiaQ4FvFCg=";
1212 };
1313
14+ # we don't have /usr/bin/env in the sandbox, so substitute for a proper,
15+ # absolute path to janet
16+ postPatch = ''
17+ substituteInPlace jpm \
18+ --replace '/usr/bin/env janet' $out/bin/janet \
19+ --replace /usr/local/lib/janet $out/lib \
20+ --replace /usr/local $out
21+
22+ substituteInPlace janet.1 \
23+ --replace /usr/local/lib/janet $out/lib
24+ '';
25+
1426 nativeBuildInputs = [ meson ninja ];
27+
1528 mesonFlags = [ "-Dgit_hash=release" ];
1629
1730 doCheck = true;
@@ -20,7 +33,7 @@ stdenv.mkDerivation rec {
2033 description = "Janet programming language";
2134 homepage = "https://janet-lang.org/";
2235 license = licenses.mit;
36+ maintainers = with maintainers; [ andrewchambers peterhoeg ];
2337 platforms = platforms.all;
24− maintainers = with maintainers; [ andrewchambers ];
2538 };
2639}