From de0f0164d205f561cffcea12d6aaad42d848abfc Mon Sep 17 00:00:00 2001 From: sterni Date: Mon, 2 Aug 2021 15:14:54 +0200 Subject: feat(3p/lisp/npg): build using buildLisp Change-Id: I9f987dc25d77a829cc0716cbe4cb1b91c36de861 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3269 Tested-by: BuildkiteCI Reviewed-by: grfn --- third_party/lisp/npg/.skip-subtree | 1 + third_party/lisp/npg/OWNERS | 3 +++ third_party/lisp/npg/README | 9 ++++++++- third_party/lisp/npg/default.nix | 14 ++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 third_party/lisp/npg/.skip-subtree create mode 100644 third_party/lisp/npg/OWNERS create mode 100644 third_party/lisp/npg/default.nix (limited to 'third_party') diff --git a/third_party/lisp/npg/.skip-subtree b/third_party/lisp/npg/.skip-subtree new file mode 100644 index 000000000000..5051f60d6b86 --- /dev/null +++ b/third_party/lisp/npg/.skip-subtree @@ -0,0 +1 @@ +prevent readTree from creating entries for subdirs that don't contain an .nix files diff --git a/third_party/lisp/npg/OWNERS b/third_party/lisp/npg/OWNERS new file mode 100644 index 000000000000..f16dd105d761 --- /dev/null +++ b/third_party/lisp/npg/OWNERS @@ -0,0 +1,3 @@ +inherited: true +owners: + - sterni diff --git a/third_party/lisp/npg/README b/third_party/lisp/npg/README index c69ef9080a76..a1661e744a37 100644 --- a/third_party/lisp/npg/README +++ b/third_party/lisp/npg/README @@ -3,6 +3,13 @@ for Common Lisp Copyright (C) 2003-2006, 2010 by Walter C. Pelissero + Copyright (C) 2021 by the TVL Authors + +Vendored into depot as it is a dependency of mime4cl and upstream has +become inactive. Upstream and depot version may diverge. + +Upstream Website: http://wcp.sdf-eu.org/software/#npg +Vendored Tarball: http://wcp.sdf-eu.org/software/npg-20150517T144652.tbz This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -36,6 +43,6 @@ though. Multiple concurrent parsers are supported. -To compile, an ASDF file is provided. +To compile, an ASDF and nix file are provided. See the examples directory for clues on how to use it. diff --git a/third_party/lisp/npg/default.nix b/third_party/lisp/npg/default.nix new file mode 100644 index 000000000000..af7ec53eaf93 --- /dev/null +++ b/third_party/lisp/npg/default.nix @@ -0,0 +1,14 @@ +# Copyright (C) 2021 by the TVL Authors +# SPDX-License-Identifier: LGPL-2.1-or-later +{ depot, pkgs, ... }: + +depot.nix.buildLisp.library { + name = "npg"; + + srcs = [ + ./src/package.lisp + ./src/common.lisp + ./src/define.lisp + ./src/parser.lisp + ]; +} -- cgit 1.4.1