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
This commit is contained in:
parent
b4cfddfc80
commit
c266f5133f
6 changed files with 184 additions and 0 deletions
40
users/Profpatsch/httzip/default.nix
Normal file
40
users/Profpatsch/httzip/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ 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
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue