diff options
author | Kovacsics Robert <rmk35@cam.ac.uk> | 2019-12-19 16:26:54 +0000 |
---|---|---|
committer | Kovacsics Robert <rmk35@cam.ac.uk> | 2020-01-17 22:52:25 +0000 |
commit | 51e137bbdc3821852201adbfa49dea728f8f5cfc (patch) | |
tree | 001aa357430a3097dc5762b08202bfb7f3f35e5c | |
parent | 4851555ea050275e3b54ed5fc22a909f1af05d78 (diff) |
rosie: init at unstable-2020-01-11
It uses its own Lua (making it use a generic Lua is work-in-progress).
-rw-r--r-- | pkgs/tools/text/rosie/default.nix | 47 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/text/rosie/default.nix b/pkgs/tools/text/rosie/default.nix new file mode 100644 index 000000000000..37f523c03475 --- /dev/null +++ b/pkgs/tools/text/rosie/default.nix @@ -0,0 +1,47 @@ +{ stdenv +, lib +, fetchgit +, libbsd +, readline +}: + +stdenv.mkDerivation rec { + pname = "rosie"; + version = "unstable-2020-01-11"; + src = fetchgit { + url = https://gitlab.com/rosie-pattern-language/rosie; + rev = "670e9027563609ba2ea31e14e2621a1302742795"; + sha256 = "0jc512dbn62a1fniknhbp6q0xa1p7xi3hn5v60is8sy9jgi3afxv"; + fetchSubmodules = true; + }; + + postUnpack = '' + # The Makefile calls git to update submodules, unless this file exists + touch ${src.name}/submodules/~~present~~ + ''; + + preConfigure = '' + patchShebangs src/build_info.sh + # Part of the same Makefile target which calls git to update submodules + ln -s src submodules/lua/include + ''; + + postInstall = '' + mkdir -p $out/share/emacs/site-lisp $out/share/vim-plugins $out/share/nvim + mv $out/lib/rosie/extra/extra/emacs/* $out/share/emacs/site-lisp/ + mv $out/lib/rosie/extra/extra/vim $out/share/vim-plugins/rosie + ln -s $out/share/vim-plugins/rosie $out/share/nvim/site + ''; + + makeFlags = [ "DESTDIR=${placeholder "out"}" ]; + + buildInputs = [ libbsd readline ]; + + meta = with lib; { + homepage = https://rosie-lang.org; + description = "Tools for searching using parsing expression grammars"; + license = licenses.mit; + maintainers = with maintainers; [ kovirobi ]; + platforms = with platforms; linux ++ darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 245abf731dda..06f487aa0afb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6116,6 +6116,8 @@ in rnv = callPackage ../tools/text/xml/rnv { }; + rosie = callPackage ../tools/text/rosie { }; + rounded-mgenplus = callPackage ../data/fonts/rounded-mgenplus { }; roundup = callPackage ../tools/misc/roundup { }; |