From c5399bc321483d001cc31f62778a3772ddb5a2ce Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 4 Jun 2023 15:11:22 +0000 Subject: modules/pushmail: init --- overlays/personal/default.nix | 2 ++ overlays/personal/pushmail/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 overlays/personal/pushmail/default.nix (limited to 'overlays') diff --git a/overlays/personal/default.nix b/overlays/personal/default.nix index 643129f0feec..8525029dee29 100644 --- a/overlays/personal/default.nix +++ b/overlays/personal/default.nix @@ -3,4 +3,6 @@ self: super: { declarative-git-repository = self.callPackage ./declarative-git-repository { }; + + pushmail = self.callPackage ./pushmail { }; } diff --git a/overlays/personal/pushmail/default.nix b/overlays/personal/pushmail/default.nix new file mode 100644 index 000000000000..98b504fc3510 --- /dev/null +++ b/overlays/personal/pushmail/default.nix @@ -0,0 +1,30 @@ +{ lib, rustPlatform, fetchurl, makeWrapper, pkg-config, openssl, gitMinimal }: + +rustPlatform.buildRustPackage rec { + pname = "pushmail"; + version = "0.1.0"; + + src = fetchurl { + url = "https://git.qyliss.net/pushmail/snapshot/pushmail-${version}.tar.xz"; + sha256 = "1lbz6nggzzaq9wgsscgv6ypn74mh5fc5z48pw0f5p0bl73vn2n17"; + }; + + cargoSha256 = "1nr4gdnkzaafbl5xlzx3wz1lyax63g8qrdiq4i5dh1s585pxmvr0"; + + nativeBuildInputs = [ makeWrapper pkg-config ]; + buildInputs = [ openssl ]; + strictDeps = true; + + postInstall = '' + wrapProgram $out/bin/pushmail \ + --prefix PATH : ${lib.makeBinPath [ gitMinimal ]} + ''; + + meta = with lib; { + homepage = "https://git.qyliss.net/pushmail/about/"; + description = "Send notification emails for direct pushes to a GitHub repository"; + maintainers = with maintainers; [ qyliss ]; + license = licenses.gpl2Plus; # with linking exception for OpenSSL + platforms = platforms.unix; + }; +} -- cgit 1.4.1