depot/web/fup/default.nix

33 lines
702 B
Nix
Raw Normal View History

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