nixpkgs/pkgs/by-name/ha/hasmail/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

43 lines
815 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, pango
, cairo
, gtk2
}:
buildGoModule rec {
pname = "hasmail-unstable";
version = "2019-08-24";
src = fetchFromGitHub {
owner = "jonhoo";
repo = "hasmail";
rev = "eb52536d26815383bfe5990cd5ace8bb9d036c8d";
hash = "sha256-QcUk2+JmKWfmCy46i9gna5brWS4r/D6nC6uG2Yvi09w=";
};
vendorHash = "sha256-kWGNsCekWI7ykcM4k6qukkQtyx3pnPerkb0WiFHeMIk=";
doCheck = false;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
pango
cairo
gtk2
];
meta = with lib; {
description = "Simple tray icon for detecting new email on IMAP servers";
mainProgram = "hasmail";
homepage = "https://github.com/jonhoo/hasmail";
license = licenses.unlicense;
maintainers = with maintainers; [ doronbehar ];
};
}