diff options
author | Caetano Melone <cmelone@users.noreply.github.com> | 2024-02-12 03:58:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 10:58:12 +0100 |
commit | 4edb073a20871cc743d0184032f1d393ca5cd20f (patch) | |
tree | abc6917d26378160a90e14f06a95dc0c45607a0b | |
parent | 5d2b9514dbe1d20df36f47730a0fb5039f56247e (diff) | |
download | spack-4edb073a20871cc743d0184032f1d393ca5cd20f.tar.gz spack-4edb073a20871cc743d0184032f1d393ca5cd20f.tar.bz2 spack-4edb073a20871cc743d0184032f1d393ca5cd20f.tar.xz spack-4edb073a20871cc743d0184032f1d393ca5cd20f.zip |
litestream: add new package (#42565)
-rw-r--r-- | var/spack/repos/builtin/packages/litestream/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/litestream/package.py b/var/spack/repos/builtin/packages/litestream/package.py new file mode 100644 index 0000000000..e91e14ed8f --- /dev/null +++ b/var/spack/repos/builtin/packages/litestream/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +import os + +from spack.package import * + + +class Litestream(GoPackage): + """Streaming replication for SQLite.""" + + homepage = "https://github.com/benbjohnson/litestream" + url = "https://github.com/benbjohnson/litestream/archive/refs/tags/v0.3.13.tar.gz" + + license("Apache-2.0", checked_by="cmelone") + + version("0.3.13", sha256="92cb22323b8168f6efdfcad270772fea9e78c709a7149b1bf35d81fcb88bdaf9") + + +class GoBuilder(spack.build_systems.go.GoBuilder): + @property + def build_directory(self): + return os.path.join(self.pkg.stage.source_path, "cmd", "litestream") |