tvl-depot/users/Profpatsch/httzip/default.nix
Profpatsch c266f5133f feat(users/Profpatsch): init httzip
A streaming webserver which serves directories as .zip recursively.
Because everything sucks and this is the best way to get dirs
delivered to people.

Change-Id: I451885cfc5082db12ac32eb0a4bfb04bc983d3c2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8953
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2023-07-14 08:03:14 +00:00

40 lines
758 B
Nix

{ depot, pkgs, lib, ... }:
let
httzip = pkgs.haskellPackages.mkDerivation {
pname = "httzip";
version = "0.1.0";
src = depot.users.Profpatsch.exactSource ./. [
./httzip.cabal
./Httzip.hs
];
libraryHaskellDepends = [
pkgs.haskellPackages.pa-prelude
pkgs.haskellPackages.warp
pkgs.haskellPackages.wai
pkgs.haskellPackages.wai-conduit
pkgs.haskellPackages.conduit-extra
pkgs.haskellPackages.conduit
];
isExecutable = true;
isLibrary = false;
license = lib.licenses.mit;
};
bins = depot.nix.getBins httzip [ "httzip" ];
in
depot.nix.writeExecline "httzip-wrapped" { } [
"importas"
"-ui"
"PATH"
"PATH"
"export"
"PATH"
"${pkgs.zip}/bin"
bins.httzip
]