Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

remind: 3.1.15 -> 3.1.16, new home, cleanup

Old page links to new home :).

+15 -14
+15 -14
pkgs/tools/misc/remind/default.nix
··· 6 6 assert tkremind -> tcllib != null; 7 7 assert tkremind -> makeWrapper != null; 8 8 9 - stdenv.mkDerivation rec { 10 - name = "remind-3.1.15"; 9 + let 10 + inherit (stdenv.lib) optional optionals optionalString; 11 + tclLibraries = stdenv.lib.optionals tkremind [ tcllib tk ]; 12 + tclLibPaths = stdenv.lib.concatStringsSep " " 13 + (map (p: "${p}/lib/${p.libPrefix}") tclLibraries); 14 + in stdenv.mkDerivation { 15 + name = "remind-3.1.16"; 11 16 src = fetchurl { 12 - url = https://www.roaringpenguin.com/files/download/remind-03.01.15.tar.gz; 13 - sha256 = "1hcfcxz5fjzl7606prlb7dgls5kr8z3wb51h48s6qm8ang0b9nla"; 17 + url = https://dianne.skoll.ca/projects/remind/download/remind-03.01.16.tar.gz; 18 + sha256 = "14yavwqmimba8rdpwx3wlav9sfb0v5rcd1iyzqrs08wx07a9pdzf"; 14 19 }; 15 20 16 - tclLibraries = if tkremind then [ tcllib tk ] else []; 17 - tclLibPaths = stdenv.lib.concatStringsSep " " 18 - (map (p: "${p}/lib/${p.libPrefix}") tclLibraries); 19 - 20 - buildInputs = if tkremind then [ makeWrapper ] else []; 21 + nativeBuildInputs = optional tkremind makeWrapper; 21 22 propagatedBuildInputs = tclLibraries; 22 23 23 - postPatch = if tkremind then '' 24 + postPatch = optionalString tkremind '' 24 25 substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish" 25 - '' else ""; 26 + ''; 26 27 27 - postInstall = if tkremind then '' 28 + postInstall = optionalString tkremind '' 28 29 wrapProgram $out/bin/tkremind --set TCLLIBPATH "${tclLibPaths}" 29 - '' else ""; 30 + ''; 30 31 31 32 meta = { 32 - homepage = http://www.roaringpenguin.com/products/remind; 33 + homepage = https://dianne.skoll.ca/projects/remind/; 33 34 description = "Sophisticated calendar and alarm program for the console"; 34 35 license = stdenv.lib.licenses.gpl2; 35 36 maintainers = with stdenv.lib.maintainers; [raskin kovirobi];