helm/pkgs/ulogger.nix

28 lines
557 B
Nix
Raw Normal View History

2023-04-21 22:19:58 -07:00
{ lib, stdenv, fetchurl, fetchpatch }:
let
pname = "ulogger-server";
version = "1.1";
in
stdenv.mkDerivation {
inherit pname version;
# Release tarball includes vendored files
src = fetchurl {
url = "https://github.com/bfabiszewski/ulogger-server/archive/refs/tags/v${version}.tar.gz";
2023-04-23 04:02:59 -07:00
hash = "sha256-+ZyNA5+lhD6DKXIWNdlLA7ArtV1F61H3UmMyRVRdws0=";
2023-04-21 22:19:58 -07:00
};
dontBuild = true;
installPhase = ''
runHook preInstall
rm -R .docker
rm -R .tests
2023-04-23 04:02:59 -07:00
rm -R uploads/
2023-04-21 22:19:58 -07:00
mkdir $out
cp -R * $out/
runHook postInstall
'';
}