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
|
2021-03-21 19:06:38 +00:00
|
|
|
pkgs.makeWrapper
|
2021-03-21 19:05:59 +00:00
|
|
|
];
|
|
|
|
|
2021-03-21 19:06:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/fup --prefix PATH : ${lib.makeBinPath [ depot.third_party.cheddar ]}
|
|
|
|
'';
|
|
|
|
|
2021-04-03 13:49:45 +00:00
|
|
|
vendorSha256 = "sha256:0i2ag29jsv3dmd28q7h022z3ym6mh9mywpxy4i6d8fg7gai7xkph";
|
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;
|
|
|
|
};
|
|
|
|
}
|