2024-03-12 01:19:14 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
pkgs.buildGoModule {
|
|
|
|
name = "barf-fe";
|
2024-03-27 00:36:06 +00:00
|
|
|
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
|
|
|
|
'';
|
2024-03-12 01:19:14 +00:00
|
|
|
}
|