depot/web/barf/frontend/default.nix

32 lines
613 B
Nix

# SPDX-FileCopyrightText: 2024 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, lib, ... }:
pkgs.buildGoModule {
name = "barf-fe";
src = lib.sourceByRegex ./. [
".*\.go$"
"go.mod"
"go.sum"
"barfdb"
"barfcli"
"static"
"static/clipit"
"static/fonts"
".*/.*\.webm"
".*/.*\.png"
".*/.*\.wav"
".*/.*\.svg"
".*\.html"
".*/.*\.woff"
".*/.*\.woff2"
".*/.*\.css"
];
vendorHash = "sha256:0caif1kkxycdqpcp593y6dimwpwh7qcngncv360qb7m9a3ikh82y";
postInstall = ''
mv $out/bin/frontend $out/bin/barffe
'';
}