about summary refs log tree commit diff
path: root/users/Profpatsch/httzip/default.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
]