mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
571c71e6f7
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.
32 lines
955 B
Nix
32 lines
955 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "caeml";
|
|
version = "unstable-2023-05-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ferdinandyb";
|
|
repo = pname;
|
|
rev = "25dbe10e99aac9b0ce3b80787c162628104f5cd2";
|
|
sha256 = "UIQCNkUyrtMF0IiAfkDvE8siqxNvfFc9TZdlZiTxCVc=";
|
|
};
|
|
|
|
vendorHash = "sha256-SDJsRLIGlLv/6NUctCrn6z1IDEmum1Wn5I8RFuwcOe8=";
|
|
|
|
meta = with lib; {
|
|
description = "cat eml files";
|
|
mainProgram = "caeml";
|
|
longDescription = ''
|
|
Reads an email file from either STDIN or from a file passed as the first
|
|
argument, digests it and outputs it to STDOUT in a more human readable
|
|
format. This means only From, To, Cc, Bcc, Date and Subject headers are
|
|
kept and these are decoded and of all the parts only text/plain is returned.
|
|
'';
|
|
homepage = "https://github.com/ferdinandyb/caeml";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
};
|
|
}
|