nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 44 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, tk 5, tcllib 6, tcl 7, tkremind ? true 8}: 9 10let 11 inherit (lib) optional optionals optionalString; 12 tclLibraries = optionals tkremind [ tcllib tk ]; 13 tkremindPatch = optionalString tkremind '' 14 substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish" 15 ''; 16in 17tcl.mkTclDerivation rec { 18 pname = "remind"; 19 version = "04.02.05"; 20 21 src = fetchurl { 22 url = "https://dianne.skoll.ca/projects/remind/download/remind-${version}.tar.gz"; 23 sha256 = "sha256-nOEFhVwZvgUod+j/5ifllFgTS7I8+hOAeMSDlRH4+Ag="; 24 }; 25 26 propagatedBuildInputs = tclLibraries; 27 28 postPatch = '' 29 substituteInPlace ./configure \ 30 --replace "sleep 1" "true" 31 substituteInPlace ./src/init.c \ 32 --replace "rkrphgvba(0);" "" \ 33 --replace "rkrphgvba(1);" "" 34 ${tkremindPatch} 35 ''; 36 37 meta = with lib; { 38 homepage = "https://dianne.skoll.ca/projects/remind/"; 39 description = "Sophisticated calendar and alarm program for the console"; 40 license = licenses.gpl2Only; 41 maintainers = with maintainers; [ raskin kovirobi ]; 42 platforms = platforms.unix; 43 }; 44}