nixpkgs/pkgs/tools/misc/uudeview/default.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, fetchpatch
, tcl
, tk
}:
2018-02-07 10:38:58 +00:00
stdenv.mkDerivation rec {
pname = "uudeview";
version = "0.5.20";
2018-02-07 10:38:58 +00:00
src = fetchurl {
url = "http://www.fpx.de/fp/Software/UUDeview/download/${pname}-${version}.tar.gz";
2018-02-07 10:38:58 +00:00
sha256 = "0dg4v888fxhmf51vxq1z1gd57fslsidn15jf42pj4817vw6m36p4";
};
buildInputs = [ tcl tk ];
2018-02-07 10:38:58 +00:00
configureFlags = [ "--enable-tk=${tk.dev}" "--enable-tcl=${tcl}" ];
2018-08-09 19:32:30 +01:00
patches = [
# https://wiki.tcl.tk/3577
./matherr.patch
# format hardening
(fetchpatch {
url = "https://raw.githubusercontent.com/OpenMandrivaAssociation/uudeview/master/uudeview-0.5.20-fix-str-fmt.patch";
sha256 = "1biipck60mhpd0j6jwizaisvqa8alisw1dpfqm6zf7ic5b93hmfw";
extraPrefix = "";
})
];
2018-02-07 10:38:58 +00:00
postPatch = ''
substituteInPlace tcl/xdeview --replace "exec uuwish" "exec $out/bin/uuwish"
'';
meta = {
description = "The Nice and Friendly Decoder";
homepage = "http://www.fpx.de/fp/Software/UUDeview/";
license = lib.licenses.gpl2Plus;
2021-01-15 09:19:50 +00:00
maintainers = with lib.maintainers; [ woffs ];
platforms = lib.platforms.linux;
2018-02-07 10:38:58 +00:00
};
}