ctucx.git: nixfiles

ctucx' nixfiles

commit 084a9c4f63676bf7e2f9600379d9d1077a7fcbbd
parent e06bd884453730c0e188846cec132f42c36b45e6
Author: Leah (ctucx) <git@ctu.cx>
Date: Sat, 10 Dec 2022 16:34:50 +0100

pkgs: remove maddy (nixpkgs is up-to-date now)
2 files changed, 0 insertions(+), 51 deletions(-)
M
pkgs/default.nix
|
1
-
D
pkgs/maddy.nix
|
50
--------------------------------------------------
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -30,7 +30,6 @@
       garminexport           = final.callPackage ./garminexport.nix {};
       phockup                = final.callPackage ./phockup.nix {};
       stagit                 = final.callPackage ./stagit.nix {};
-      maddy                  = final.callPackage ./maddy.nix {};
       gotosocial             = final.callPackage ./gotosocial {};
       AirSane                = final.callPackage ./AirSane {};
       cinny                  = final.callPackage ./cinny.nix {};
diff --git a/pkgs/maddy.nix b/pkgs/maddy.nix
@@ -1,50 +0,0 @@
-{ lib, buildGoModule, fetchFromGitHub, coreutils, installShellFiles, scdoc, nixosTests }:
-
-buildGoModule rec {
-  pname = "maddy";
-  version = "0.6.2";
-
-  src = fetchFromGitHub {
-    owner = "foxcpp";
-    repo = "maddy";
-    rev = "v${version}";
-    sha256 = "sha256-DBSqC4EteESYb6RbC2xyS+6YczGviWYnyMz7QvCO3Uc=";
-  };
-
-  vendorSha256 = "sha256-10cLNl9jWYX8XIKQkCxJ+/ymZC1YJRHUJWZQhq7zeV4=";
-
-  ldflags = [ "-s" "-w" "-X github.com/foxcpp/maddy.Version=${version}" ];
-
-  subPackages = [ "cmd/maddy" ];
-
-  nativeBuildInputs = [ installShellFiles scdoc ];
-
-  postInstall = ''
-    for f in docs/man/*.scd; do
-      local page="docs/man/$(basename "$f" .scd)"
-      scdoc < "$f" > "$page"
-      installManPage "$page"
-    done
-
-    ln -s "$out/bin/maddy" "$out/bin/maddyctl"
-
-    mkdir -p $out/lib/systemd/system
-
-    substitute dist/systemd/maddy.service $out/lib/systemd/system/maddy.service \
-      --replace "/usr/local/bin/maddy" "$out/bin/maddy" \
-      --replace "/bin/kill" "${coreutils}/bin/kill"
-
-    substitute dist/systemd/maddy@.service $out/lib/systemd/system/maddy@.service \
-      --replace "/usr/local/bin/maddy" "$out/bin/maddy" \
-      --replace "/bin/kill" "${coreutils}/bin/kill"
-  '';
-
-  passthru.tests.nixos = nixosTests.maddy;
-
-  meta = with lib; {
-    description = "Composable all-in-one mail server";
-    homepage = "https://maddy.email";
-    license = licenses.gpl3Plus;
-    maintainers = with maintainers; [ nickcao ];
-  };
-}