nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (893B)


      1 { lib, stdenv, fetchFromGitHub, buildGoModule, installShellFiles }:
      2 
      3 buildGoModule rec {
      4   pname = "chasquid";
      5   version = "1.14.0";
      6 
      7   src = fetchFromGitHub {
      8     owner = "albertito";
      9     repo = "chasquid";
     10     rev = "v${version}";
     11     hash = "sha256-BgW3qZlP6KPiD/gNJ68dSiwt+Xg3FhC0Q8aoK+Ud1sM=";
     12   };
     13 
     14   vendorHash = "sha256-dOQJJ2U9Y7zyCNNxUMX85BNMlqn9/KQbZB2CWiYaylc=";
     15 
     16   subPackages = [ "." "cmd/chasquid-util" "cmd/smtp-check" "cmd/mda-lmtp" ];
     17 
     18   nativeBuildInputs = [ installShellFiles ];
     19 
     20   ldflags = [ "-X main.version=${version}" ];
     21 
     22   postInstall = ''
     23     installManPage docs/man/*.{1,5}
     24   '';
     25 
     26   meta = with lib; {
     27     description = "SMTP (email) server with a focus on simplicity, security, and ease of operation";
     28     homepage = "https://blitiri.com.ar/p/chasquid/";
     29     license = licenses.asl20;
     30     maintainers = [ maintainers.sikmir ];
     31     mainProgram = "chasquid";
     32   };
     33 }