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.
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ spellChecking ? true
|
|
, lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, gtk3
|
|
, gtkspell3
|
|
, gmime3
|
|
, gettext
|
|
, intltool
|
|
, itstool
|
|
, libxml2
|
|
, libnotify
|
|
, gnutls
|
|
, makeWrapper
|
|
, gnupg
|
|
, gnomeSupport ? true
|
|
, libsecret
|
|
, gcr
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pan";
|
|
version = "0.158";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-gcs3TsUzZAW8PhNPMzyOfwu+2SNynjRgfxdGIfAHrpA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config gettext intltool itstool libxml2 makeWrapper ];
|
|
|
|
buildInputs = [ gtk3 gmime3 libnotify gnutls ]
|
|
++ lib.optional spellChecking gtkspell3
|
|
++ lib.optionals gnomeSupport [ libsecret gcr ];
|
|
|
|
configureFlags = [
|
|
"--with-dbus"
|
|
"--with-gtk3"
|
|
"--with-gnutls"
|
|
"--enable-libnotify"
|
|
] ++ lib.optional spellChecking "--with-gtkspell"
|
|
++ lib.optional gnomeSupport "--enable-gkr";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "GTK-based Usenet newsreader good at both text and binaries";
|
|
mainProgram = "pan";
|
|
homepage = "http://pan.rebelbase.com/";
|
|
maintainers = with maintainers; [ aleksana ];
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl2Only fdl11Only ];
|
|
};
|
|
}
|