default.nix 662 B

12345678910111213141516171819202122232425262728293031
  1. { lib, stdenv, fetchFromGitHub, meson, ninja }:
  2. stdenv.mkDerivation rec {
  3. pname = "janet";
  4. version = "1.17.1";
  5. src = fetchFromGitHub {
  6. owner = "janet-lang";
  7. repo = pname;
  8. rev = "v${version}";
  9. sha256 = "4ddDJjsTCK7kUl5rH9K644cyB9it7vma1q7566//Y2c=";
  10. };
  11. postPatch = ''
  12. substituteInPlace janet.1 \
  13. --replace /usr/local/lib/janet $out/lib
  14. '';
  15. nativeBuildInputs = [ meson ninja ];
  16. doCheck = true;
  17. meta = with lib; {
  18. description = "Janet programming language";
  19. homepage = "https://janet-lang.org/";
  20. license = licenses.mit;
  21. maintainers = with maintainers; [ vyp ];
  22. platforms = platforms.all;
  23. };
  24. }