nixpkgs/pkgs/by-name/uu/uudeview/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

45 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
, tcl
, tk
}:
stdenv.mkDerivation rec {
pname = "uudeview";
version = "0.5.20";
src = fetchurl {
url = "http://www.fpx.de/fp/Software/UUDeview/download/uudeview-${version}.tar.gz";
sha256 = "0dg4v888fxhmf51vxq1z1gd57fslsidn15jf42pj4817vw6m36p4";
};
buildInputs = [ tcl tk ];
configureFlags = [ "--enable-tk=${tk.dev}" "--enable-tcl=${tcl}" ];
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 = "";
})
];
postPatch = ''
substituteInPlace tcl/xdeview --replace "exec uuwish" "exec $out/bin/uuwish"
'';
meta = {
description = "Nice and Friendly Decoder";
homepage = "http://www.fpx.de/fp/Software/UUDeview/";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ woffs ];
platforms = lib.platforms.linux;
};
}