depot/web/barf/frontend/default.nix

33 lines
613 B
Nix
Raw Permalink Normal View History

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";
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
}