2023-07-12 22:51:17 +02:00
|
|
|
{ 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"
|
2024-03-16 12:34:37 +01:00
|
|
|
"-i"
|
2023-07-12 22:51:17 +02:00
|
|
|
"PATH"
|
|
|
|
"PATH"
|
|
|
|
"export"
|
|
|
|
"PATH"
|
2024-03-16 12:34:37 +01:00
|
|
|
"${pkgs.zip}/bin:$${PATH}"
|
2023-07-12 22:51:17 +02:00
|
|
|
bins.httzip
|
|
|
|
]
|