From 1e4dff1995833538f436b381bc0450a7c0080bad Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 12 May 2025 12:39:10 +0200 Subject: chore: Initial commit Based on the version that was previously in `vhack.eu/nixos-server/pkgs/by-name/ba/back`. --- nix/package.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 nix/package.nix (limited to 'nix/package.nix') diff --git a/nix/package.nix b/nix/package.nix new file mode 100644 index 0000000..ef00195 --- /dev/null +++ b/nix/package.nix @@ -0,0 +1,38 @@ +# Back - An extremely simple git bug visualization system. Inspired by TVL's +# panettone. +# +# Copyright (C) 2024 Benedikt Peetz +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# This file is part of Back. +# +# You should have received a copy of the License along with this program. +# If not, see . +{ + rustPlatform, + lib, +}: +rustPlatform.buildRustPackage { + pname = "back"; + version = "1.0.0"; + + src = lib.cleanSourceWith { + src = lib.cleanSource ./.; + filter = name: type: + (type == "directory") + || (builtins.elem (builtins.baseNameOf name) ["Cargo.toml" "Cargo.lock" "style.css"]) + || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)) + || (lib.strings.hasSuffix ".html" (builtins.baseNameOf name)); + }; + + doCheck = true; + + cargoLock = { + lockFile = ./Cargo.lock; + }; + + meta = { + mainProgram = "back"; + }; +} -- cgit 1.4.1