depot/web/fup/default.nix

32 lines
702 B
Nix

# SPDX-FileCopyrightText: 2021 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, pkgs, ... }:
let
inherit (pkgs) lib;
in
pkgs.buildGoModule {
pname = "fup";
version = "0.0.1";
src = ./.;
nativeBuildInputs = [
depot.third_party.cheddar
pkgs.makeWrapper
];
postInstall = ''
wrapProgram $out/bin/fup --prefix PATH : ${lib.makeBinPath [ depot.third_party.cheddar ]}
'';
vendorSha256 = "sha256:08v3n5lrnbdbs36qpr5brqrainb34nwgm9z2pbxwpj85fxb8ky06";
meta = with pkgs.lib; {
description = "Simple file upload manager.";
homepage = "https://hg.lukegb.com";
license = licenses.asl20;
platforms = platforms.linux;
};
}