28a83478bc
Change-Id: I6f27a947fe609f7d6ce004ce5aaae76b32dbe4fc Reviewed-on: https://cl.tvl.fyi/c/depot/+/11160 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI Autosubmit: Profpatsch <mail@profpatsch.de>
40 lines
766 B
Nix
40 lines
766 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"
|
|
"-i"
|
|
"PATH"
|
|
"PATH"
|
|
"export"
|
|
"PATH"
|
|
"${pkgs.zip}/bin:$${PATH}"
|
|
bins.httzip
|
|
]
|