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 ]}
|
|
|
|
'';
|
|
|
|
|
2024-03-01 17:35:58 +00:00
|
|
|
vendorHash = "sha256:0i2ag29jsv3dmd28q7h022z3ym6mh9mywpxy4i6d8fg7gai7xkph";
|
2021-03-20 19:49:33 +00:00
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "Simple file upload manager.";
|
2024-11-16 15:30:41 +00:00
|
|
|
homepage = "https://git.lukegb.com";
|
2021-03-20 19:49:33 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|