depot/web/fup/default.nix
Luke Granger-Brown 5cd85b03db fup: add cheddar to PATH for nix derivation
This ensures that we always have syntax highlighting available.

For people using it directly, it's their responsibility to make sure that
cheddar is available in their path, if they want syntax highlighting.
2021-03-21 19:06:38 +00:00

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:0myd1p61q777ybbwdz8k4nbchh2hv1yr8008061m3gc44s3gsphx";
meta = with pkgs.lib; {
description = "Simple file upload manager.";
homepage = "https://hg.lukegb.com";
license = licenses.asl20;
platforms = platforms.linux;
};
}