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.
30 lines
867 B
Nix
30 lines
867 B
Nix
{ lib, stdenv, fetchurl, ncurses, autoreconfHook, flex }:
|
|
let rev = "b17ea39dc17e5514f33b3f5c34ede92bd16e208c";
|
|
in stdenv.mkDerivation rec {
|
|
pname = "mmh";
|
|
version = "unstable-2020-08-21";
|
|
|
|
src = fetchurl {
|
|
url = "http://git.marmaro.de/?p=mmh;a=snapshot;h=${rev};sf=tgz";
|
|
name = "mmh-${rev}.tgz";
|
|
sha256 = "1bqfxafw4l2y46pnsxgy4ji1xlyifzw01k1ykbsjj9p61q3nv6l6";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace sbr/Makefile.in \
|
|
--replace "ar " "${stdenv.cc.targetPrefix}ar "
|
|
'';
|
|
|
|
buildInputs = [ ncurses ];
|
|
nativeBuildInputs = [ autoreconfHook flex ];
|
|
|
|
meta = with lib; {
|
|
description = "Set of electronic mail handling programs";
|
|
homepage = "http://marmaro.de/prog/mmh";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|