nixpkgs/pkgs/by-name/ma/mailsend/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

50 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
, openssl
}:
stdenv.mkDerivation rec {
pname = "mailsend";
version = "1.19";
src = fetchurl {
url = "https://github.com/muquit/mailsend/archive/${version}.tar.gz";
sha256 = "sha256-Vl72vibFjvdQZcVRnq6N1VuuMUKShhlpayjSQrc0k/c=";
};
buildInputs = [
openssl
];
configureFlags = [
"--with-openssl=${openssl.dev}"
];
patches = [
(fetchurl {
url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0";
})
# Pull fix pending upstream inclusion for parallel build failures:
# https://github.com/muquit/mailsend/pull/165
(fetchpatch {
name = "parallel-install.patch";
url = "https://github.com/muquit/mailsend/commit/acd4ebedbce0e4af3c7b6632f905f73e642ca38c.patch";
hash = "sha256-p8tNnkU6cMopuP63kVtRbD9aenhzL1EAXlvvFh4fucE=";
})
];
enableParallelBuilding = true;
meta = with lib; {
description = "CLI email sending tool";
license = licenses.bsd3;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
homepage = "https://github.com/muquit/mailsend";
downloadPage = "https://github.com/muquit/mailsend/releases";
mainProgram = "mailsend";
};
}